jupyter nbconvert,cmd执行notebook文件

cmd执行notebook文件

# 执行notebook,将结果保存为1.html
jupyter nbconvert --to html --execute 1.ipynb 
# 执行notebook,将结果保存为1.nbconvert.ipynb
jupyter nbconvert --to notebook --execute 1.ipynb
# 将1.ipynb转换成1.py
jupyter nbconvert --to python 1.ipynb 
# 执行notebook文件,设置超时时间
jupyter nbconvert --to html --ExecutePreprocessor.timeout=600 --execute 1.ipynb
jupyter-nbconvert --to=html xxx.ipynb --output /tmp/xxx.html

你可能感兴趣的:(jupyter)