Jupyter Notebook Cheat Sheet

/ 技术文章 / 0 条评论 / 480浏览

Jupter Notebook

安装

  1. 下载安装Python3
  2. 安装Jupter Notebook(Jupter Notebook 链接: https://jupyter.org/install)

python3

python3 -m pip install --upgrade pip
python3 -m pip install jupyter

python2

python -m pip install --upgrade pip
python -m pip install jupyter
  1. 启动
jupyter notebook

快捷方式

导出

导出为html

jupyter nbconvert --to html notebook.ipynb
jupyter nbconvert --to html --template basic notebook.ipynb

导出为md

jupyter nbconvert --to md notebook.ipynb

导出为text

jupyter nbconvert --to letex notebook.ipynb
jupyter nbconvert --to letex -template article notebook.ipynb
jupyter nbconvert --to letex -template report notebook.ipynb
jupyter nbconvert --to letex -template basic notebook.ipynb


导出为pdf

jupyter nbconvert --to pdf notebook.ipynb