Centos7安装jupyter notebook
Jupyter Notebook是以网页的形式打开,可以在网页页面中直接编写代码和运行代码,代码的运行结果也会直接在代码块下显示。如在编程过程中需要编写说明文档,可在同一个页面中直接编写,便于作及时的说明和解释。
Centos7安装jupyter notebook
1.安装python3
yum install python3
ln -s /usr/bin/python3 /usr/local/bin/python3
ln -s /usr/bin/pip3 /usr/local/bin/pip3
2.安装jupyter notebook
pip3 install jupyter
3.生成配置文件
jupyter notebook --generate-config
Writing default config to: /root/.jupyter/jupyter_notebook_config.py
4.运行python3
5.生成登录密码:
from notebook.auth import passwd
passwd()
6.记录上面生成的登录密码
7.编辑配置文件:
vim /root/.jupyter/jupyter_notebook_config.py
c.NotebookApp.password = 'sha1:18a311f2bceb:f7bebfa7a61f7057bc034d9affe750c8b65ead6a'
c.NotebookApp.port = 8888
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.notebook_dir = '/var/www/jupyter_notebook'
8.启动jupyter notebook
jupyter notebook --allow-root
Docker: 使用jupyter notebook基础镜像搭建自己的PyTorch开发环境
https://blog.csdn.net/jianchengss/article/details/78224778
评论已关闭