本地访问autodl的jupyter notebook

建立环境并安装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

同时打开

下载autodl 的客户端,输入登录指令和密码,

点击最下面的访问地址,会弹出一个让你输入密码的页面,输入当时你本身设置的密码,不是sha1密码,即可访问。小记一下做备忘。

参考文献

链接: 1

链接: 2

相关推荐
JHC0000003 小时前
基于Ollama,Milvus构建的建议知识检索系统
人工智能·python·milvus
mOok ONSC3 小时前
SpringBoot项目中读取resource目录下的文件(六种方法)
spring boot·python·pycharm
GIS兵墩墩4 小时前
postgis--PostgreSQL16及其plpython3u扩展
python·postgis
new Object ~4 小时前
LangChain的短期记忆存储实现
python·langchain
魔都吴所谓4 小时前
【Python】从零构建:IP地理位置查询实战指南
开发语言·python·tcp/ip
测试19984 小时前
使用Python自动化生成接口测试用例
自动化测试·软件测试·python·测试工具·职场和发展·测试用例·接口测试
智算菩萨5 小时前
【Pygame】第10章 游戏状态管理与场景切换机制
python·游戏·pygame
songcream15 小时前
TensorFlow的一些基本概念
人工智能·python·tensorflow
AI逐月6 小时前
解决 ComfyUI 插件安装后 Nanobind 报错问题:soxr 版本冲突原理解读
开发语言·python