問題:
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