安装ipython解释器

安装ipython解释器

1.安装ipython,指定douban源下载 pip3 install -i https://pypi.douban.com/simple ipython

2.安装朱皮特 pip3 install -i https://pypi.douban.com/simple jupyter

3.进入ipython环境,给jupyter设置密码 ipython from IPython.lib import passwd passwd()#生成密码

4.编译朱皮特的配置文件 jupyter notebook --generate-config --allow-root vim ~/.jupyter/jupyter_notebook_config.py 修改如下配置一致即可

  c.NotebookApp.ip = '可以写ip或者0.0.0.0'

  c.NotebookApp.open_browser = False

  c.NotebookApp.port = 8000

6.启动朱皮特 jupyter notebook --allow-root #启动notebook

原文地址:https://www.cnblogs.com/xiao-xue-di/p/10057395.html