![]() It is open source and feedback (both good and bad) is appreciated. ![]() gitattributes file by adding: notebook_file.nb !filterĭisclaimer: I am the author of this tool. ![]() However, to help protect against accidentally losing any work, Mathematica can be set to save a notebook automatically after every evaluation by setting the NotebookAutoSave option accordingly. using the menu item File Save or the keyboard shortcut Ctrl+S). If, for some reason, you want to have a specific Mathematica notebook committed with all output and metadata, you can disable the filter in the project's. By default, Mathematica only saves notebooks following a user’s explicit action (e.g. This instructs git to parse all files matching *.nb with the dropoutput_nb filter which is defined in your ~/.gitconfig as: You will need to have mathematica-notebook-filter filter installed and added to your path variable (or adapt the configuration below to point to the binary) and add the following line to your ~/.gitattributes file: *.nb filter=dropoutput_nb In the specific case of git, it is quite easy to integrate mathematica-notebook-filter so that git automatically cleans the output and metadata when calculating diffs through the use of gitattribute filters. Here you’ll make use of the latter, deploying a Wolfram Language web API. A new possibility is to use mathematica-notebook-filter which parses Mathematica notebooks and strips all output cells and metadata so that these are not committed into the version control system. The Wolfram Cloud provides various services, including a notebook web interface for Wolfram Language programming as well as the capability to deploy arbitrary Wolfram Language web APIs.
0 Comments
Leave a Reply. |