convert json ipython notebook(.ipynb) to .py file

后端 未结 10 2224
灰色年华
灰色年华 2020-12-02 12:28

How do you convert an IPython notebook file (json with .ipynb extension) into a regular .py module?

10条回答
  •  无人及你
    2020-12-02 12:59

    According to https://ipython.org/ipython-doc/3/notebook/nbconvert.html you are looking for the nbconvert command with the --to script option.

    ipython nbconvert notebook.ipynb --to script
    

提交回复
热议问题