ubuntu服务器安装jupyter notebook, 并能够实现本地远程连接

1.terminal 敲击 pip3 install jupyter

2.terminal 敲击 jupyter notebook --generate-config

3.terminal 敲击 python3

  python命令行里敲击

    from notebook.auth import passwd

   passwd(), 然后会生成秘钥

4.terminal 敲击 vim ~/.jupyter/jupyter_notebook_config.py(该文件生成的路径)

c.NotebookApp.ip='*'                          # 设置所有ip皆可访问  
c.NotebookApp.password = u''                  # 复制生成的秘钥  
c.NotebookApp.open_browser = False            # 禁止自动打开浏览器  
c.NotebookApp.port = 8888                      # 指定8888端口 
c.NotebookApp.allow_remote_access = True

5.terminal 敲击 jupyter notebook,然后本地可以通过服务器的ip + :8888即可远程访问

原文地址:https://www.cnblogs.com/laresh/p/8193939.html