较新的 JupyterLab 和 Jupyter Notebook 使用了 c.ServerApp 代替了 c.NotebookApp。
所以看到其他教程都是NotebookApp,而自己的却是ServerApp。
nano使用
ctrl + w :搜索,
ctrl + w + enter:搜索下一个
ctrl + o:保存
ctrl + x:离开
jupyter配置
conda install ipykernel
conda install notebook
jupyter notebook --generate-config #生成配置文件,后续的修改都是在这里面
jupyter notebook password
cd .jupyter
ls
nano jupyter_notebook_config.py
通过上面nano的搜索功能,找到这些,并修改,去掉注释。
.ip = '*'
.open_browser = False
.port = 8888
.notebook_dir = '/home/name/file_name #可选,设置notebook工作目录,不设置就在.jupyter目录里.
ctrl + O 保存
ctrl + X 退出
jupyter notebook
在自己的电脑网址处输入服务器ip:8888
即可