The easiest way to convert Jupyter(.ipynb) to 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