No need for conversion. You can run the notebook from the command line one of several ways:
-
jupyter nbconvert --to notebook --execute
, see Executing notebooks from the command line in nbconvert documentation - jupytext - The ability to use it to directly execute notebooks that are in normal notebook format previously was more clearly featured in the documentation of the Jupytext command line examples; however,
--execute
option is noted there now & if you usejupytext --execute notebook.ipynb
it runs the notebook. - Papermill - on top of the ability to execute notebooks, Papermill adds the ability to parameterize notebooks.
- Ploomber - This note briefly summarizes where and how ploomber is meant to be leaveraged.
Papermill supposedly has one advantage for long running notebooks: I’ve seen it said that it saves on a per cell basis and that offers more possibilities to monitor progress. Whereas, jupyter nbconvert --exectute
doesn’t save the output in the executed notebook file until completion. I haven’t tested this myself yet, and I don’t know what Jupytext does along these lines.