利用nbconvert包进行格式转换
# installing tools
conda install anaconda::nbconvert
basic usage
jupyter nbconvert --to FORMAT notebook.ipynb
# e.g.
# convert .ipynb to .py files
jupyter nbconvert --to python notebook.ipynb
# convert .ipynb to .sh files
jupyter nbconvert --to script notebook.ipynb
其他用法
参考:https://nbconvert.readthedocs.io/en/latest/usage.html#converting-multiple-notebooks
网友评论