Jupyter For CentOS
1、安装
pip install jupyter
2、文档
https://jupyter.readthedocs.io/en/latest/running.html\#running
https://jupyter-notebook.readthedocs.io/en/latest/
3、安装后配置
(env_jupyter) [root@69 jupyter]# jupyter notebook --generate-config --allow-root
Writing default config to: /root/.jupyter/jupyter_notebook_config.py
1、配置登录密码
启动终端输入 ipython
(env_36_jupyter) D:\project\pycharm\jupyter>ipython
In [1]: from IPython.lib import passwd
In [2]: passwd()
Enter password: 111111
Verify password: 111111
Out[2]: 'sha1:f217f6a958e8:952422cb9e9e7c3a89cc707f7c9593ffa614dee6'
2、生成配置文件
启动终端输入 jupyter-notebook --generate-config
Writing default config to: C:\Users\Administrator.jupyter\jupyter_notebook_config.py
找到并打开这个文件,修改需要配置
c.NotebookApp.allow_root = True
c.NotebookApp.password = 'sha1:f217f6a958e8:952422cb9e9e7c3a89cc707f7c9593ffa614dee6'
c.NotebookApp.open_browser = False
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.notebook_dir = '/home/jupyter'