Linux下安装配置Jupyter notebook并启动

您所在的位置:网站首页 启动jupyternotebook的终端 Linux下安装配置Jupyter notebook并启动

Linux下安装配置Jupyter notebook并启动

#Linux下安装配置Jupyter notebook并启动| 来源: 网络整理| 查看: 265

Linux下安装配置Jupyter notebook并启动

前提:需安装好anaconda。 1、安装jupyter python3 -m pip install jupyter

2、生成jupyter配置文件 #root用户: jupyter notebook --generate-config --allow-root #非root用户 jupyter notebook --generate-config 在这里插入图片描述

3、打开ipython,生成密码 ipython from notebook.auth import passwd passwd() – 输入密码并按回车确认 输入密码后,会生成秘钥,稍后用到,秘钥带上sha1 在这里插入图片描述

4、修改配置文件 vim /root/.jupyter/jupyter_notebook_config.py vim /root/.jupyter/jupyter_notebook_config.py c.NotebookApp.ip = ‘192.168.*.’ – ipynb文件保存地址 c.NotebookApp.notebook_dir = u’/root/jupyder_dir’ c.NotebookApp.open_browser = False c.NotebookApp.password = u’sha1:*********’ c.NotebookApp.port = 8888

在这里插入图片描述

5、启动jupyter – root用户 jupyter notebook --allow-root – 非root用户 jupyter notebook

6、外部浏览器访问 在本地浏览器打开:http://xxx.xx.xx.xxx:8888 即可访问了,需输入密码,可记住密码。有的浏览器可能打不开,建议换其他浏览器。 在这里插入图片描述



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3