一、安装

1.安装 jupyter notebook

pip install jupyter notebook

2.安装代码补全工具

pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator

jupyter contrib nbextension install --user --skip-running-check

3.启动 jupyter notebook

jupyter notebook

image-20210201212354797

image-20210201213621498

二、问题处理

1.如果代码补全不生效,降级 jedi 到 0.17.2

pip install jedi==0.17.2

2.报错 Config option template_path not recognized by LenvsLatexExporter

pip install nbconvert==5.6.1

3.修改默认目录

查看配置路径

jupyter notebook --generate-config

修改配置

## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'D:\JupyterNotebook'

版权声明:如无特殊说明,文章均为本站原创,转载请注明出处

本文链接:http://blog.turboway.top/article/jupyter/

许可协议:署名-非商业性使用 4.0 国际许可协议