当地访问autodl的jupyter notebook

[复制链接]
发表于 2026-1-13 16:15:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
创建情况并安装jupyter

conda create --name medkg python=3.10
source activate medkg
pip install jupyter
安装完成后,输入jupyter notebook --generate-config

输入ipython,进入python
In [2]: from jupyter_server.auth import passwd
In [3]: passwd(algorithm=‘sha1’)
返回

记着暗码,并输入exit();退出
编辑刚才的config文件 vim /root/.jupyter/jupyter_notebook_config.py
在最末了插入
c.ServerApp.ip = ‘0.0.0.0’
c.ServerApp.password = ‘’#填写刚才天生出来的谁人暗码字符串
c.ServerApp.open_browser = False
c.ServerApp.port = 6006
c.ServerApp.allow_remote_access = True
输入!wq,回车,生存,
返回原来的控制台,重新输入jupyter notebook --allow-root

同时打开
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表