0
点赞
收藏
分享

微信扫一扫

开启Jupyter的远程访问

zidea 2023-08-16 阅读 79

环境

ubuntu22,Jupyter notebook Jupyter notebook装到服务器上,每次都跑机房开Jupyter notebook实在不方便,遂开启远程访问

步骤

  1. 安装并配置Jupyter。确保您已经安装了Jupyter Notebook或JupyterLab,并且它们已经正确配置。
  2. 打开终端或命令提示符,并使用以下命令进入Jupyter的配置目录:
cd ~/.jupyter
  1. 创建一个新的配置文件,命名为jupyter_notebook_config.py文件,并添加以下内容:
c = get_config()    
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:your_hashed_password'

将your_hashed_password替换为您想要设置的密码的哈希值。您可以使用任何密码哈希工具生成密码哈希值。 4. 保存并关闭文件。 5. 启动

jupyter notebook --config=~/.jupyter/jupyter_notebook_config.py

输入密码即可进入

举报

相关推荐

0 条评论