Is there a way to execute a notebook file from the command line and automatically run all cells?
I am looking for something like
sage -n jupyter --no-browser --script test1.ipynb
however, --script
is deprecated and --no-browser
doesn't stop sage from opening a browser window for me. Worse yet, the cells in the notebook are not executed automatically either.
Background: My aim is to automatically run a set of different sage notebooks (which are basically scripts to generate data files) in a directory, similar to how you would compile various source files to binaries. The notebooks are a collaborative effort and in a version control system and every developer would be able to generate those data files locally on their machine by running some shell script or through a Makefile.