如何從終端運行 .ipynb Jupyter Notebook? - How to run an .ipynb Jupyter Notebook from terminal?

問題:

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.我在 .ipynb 文件中有一些代碼,並且已經達到了我並不真正需要 IPython Notebook 的“交互式”功能的程度。 I would like to just run it straight from a Mac Terminal Command Line.我想直接從 Mac 終端命令行運行它。

Basically, if this were just a .py file, I believe I could just do python filename.py from the command line.基本上,如果這只是一個 .py 文件,我相信我可以從命令行執行 python filename.py 。 Is there something similar for a .ipynb file? .ipynb 文件有類似的東西嗎?


解決方案:

參考一: https://en.stackoom.com/question/2P8yw
參考二: https://stackoom.com/question/2P8yw
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章