一、什么是jupyter
Jupyter Notebook是一个开源的web应用程序,一个交互式笔记本,支持运行 40 多种编程语言。
二、jupyter的安装和使用(python3版)
1、安装
pip3 install jupyter
找到安装的jupyter二进制文件
find / -name jupyter
创建软连接
ln -s /usr/local/python3/bin/jupyter /usr/bin/jupyter
2、初始化生成默认配置文件
jupyter notebook --generate-config
根据提示,找到生成的配置文件jupyter_notebook_config.py
vim /root/.jupyter/jupyter_notebook_config.py
修改对应值
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.password = '123456'
c.NotebookApp.port = 3333
说明:
修改后,就可以在浏览器中访问
http://IP:3333
密码:123456
3、后台启动jupyter
mkdir jupyter_server
cd jupyter_server
nohup jupyter notebook --allow-root > jupyter.log 2>&1 &
或者
nohup jupyter notebook --port 3333 --ip "0.0.0.0" --allow-root > jupyter.log 2>&1 &
4、查看帮助
jupyter notebook -h
5、修改密码
https://www.jianshu.com/p/17dca6584dfe
使用参考: