ipynb转换为python文件

使用jupyter-notebook打开ipynb,如下图所示,可以转换为其他格式的文件。

命令行的方式:

  • ipynb转换为python
jupyter nbconvert --to python my_file.ipynb
  • ipynb转换为md
jupyter nbconvert --to md my_file.ipynb
  • ipynb转为html
jupyter nbconvert --to html my_file.ipynb
  • ipython转换为pdf
jupyter nbconvert --to pdf my_file.ipynb
  • 其他格式转换请参考
jupyter nbconvert --help

猜你喜欢

转载自blog.csdn.net/szfhy/article/details/81671090