python杂

The easiest way to convert Jupyter(.ipynb) to Python(.py)

将Jupyter(.ipynb)文件转换为Python(.py)的方式

在python中安装ipython和nbconvert库

pip install ipython
pip install nbconvert

转换单个文件

jupyter nbconvert --to python abc.ipynb

转换多个文件
方式(1)

jupyter nbconvert --to python abc.ipynb def.ipynb

方式(2)

jupyter nbconvert --to python *.ipynb

你可能感兴趣的:(python)