How do I convert a IPython Notebook into a Python file via commandline?

后端 未结 10 2583
一生所求
一生所求 2020-11-29 14:42

I\'m looking at using the *.ipynb files as the source of truth and programmatically \'compiling\' them into .py files for scheduled jobs/tasks.

The

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 14:59

    If you want to convert all *.ipynb files from current directory to python script, you can run the command like this:

    jupyter nbconvert --to script *.ipynb
    

提交回复
热议问题