jupyter

发布时间 2023-12-16 14:49:13作者: badwood

1、安装:

pip3 install jupyter

2、配置:

生成配置文件:jupyter-lab --generate-config

查看配置:jupyter-lab --show-config

查看配置文件路径:jupyter --config-dir

相关配置:

c.ServerApp.ip = '192.168.1.2'  #服务器侦听地址
c.ServerApp.port = 8080  #侦听端口,默认8888
c.ServerApp.allow_remote_access = True  #允许远程访问
c.LabApp.open_browser = False  #启动后是否打开浏览器

3、访问:

启动后会提示:http://192.168.1.1:8080/lab?token=3c14f4e43b446b56723ab29b839723f654f0ebceb846dd96

  • 在浏览器中访问上述地址可直接使用jupyter。
  • 在浏览器中访问http://192.168.1.1:8080/lab,在提示页面输入上述token,可新建密码,以后通过此密码使用jupyter。