nbconvert

How to run an .ipynb Jupyter Notebook from terminal?

为君一笑 提交于 2019-11-26 18:17:08
I have some code in a .ipynb file and got it to the point where I don't really need the "interactive" feature of IPython Notebook. I would like to just run it straight from a Mac Terminal Command Line. Basically, if this were just a .py file, I believe I could just do python filename.py from the command line. Is there something similar for a .ipynb file? ditkin From the command line you can convert a notebook to python with this command: ipython nbconvert --to python <YourNotebook>.ipynb You may have to install the python mistune package: sudo pip install mistune nbconvert allows you to run

How to run an .ipynb Jupyter Notebook from terminal?

こ雲淡風輕ζ 提交于 2019-11-26 06:56:15
问题 I have some code in a .ipynb file and got it to the point where I don\'t really need the \"interactive\" feature of IPython Notebook. I would like to just run it straight from a Mac Terminal Command Line. Basically, if this were just a .py file, I believe I could just do python filename.py from the command line. Is there something similar for a .ipynb file? 回答1: From the command line you can convert a notebook to python with this command: jupyter nbconvert --to python nb.ipynb https://github