Jupyter Notebook初步配置

部分常用命令

常用包

conda install nb_conda
conda install ipykernel

如有Permission denied,检查是否为root。

设置密码

jupyter notebook password

生成配置文件

jupyter notebook --generate-config

目标为.jupyter/jupyter_notebook_config.py

部分配置

c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port
c.NotebookApp.password = u'sha1:XXXXXX'

密码

from notebook.auth import passwd
passwd()

Help

jupyter notebook --help
Author: Yorushika Shi
Link: https://sh.yorushika.co/post/jupyter-config/index.html
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.