本地访问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

相关推荐
踏着七彩祥云的小丑16 小时前
pytest——Mark标记
开发语言·python·pytest
不爱吃炸鸡柳17 小时前
Python入门第一课:零基础认识Python + 环境搭建 + 基础语法精讲
开发语言·python
Dxy123931021618 小时前
Python基于BERT的上下文纠错详解
开发语言·python·bert
SiYuanFeng19 小时前
Colab复现 NanoChat:从 Tokenizer(CPU)、Base Train(CPU) 到 SFT(GPU) 的完整踩坑实录
python·colab
炸炸鱼.20 小时前
Python 操作 MySQL 数据库
android·数据库·python·adb
_深海凉_20 小时前
LeetCode热题100-颜色分类
python·算法·leetcode
zh_xuan21 小时前
Visual Studio 上传工程到github
ide·git·github·visual studio
AC赳赳老秦21 小时前
OpenClaw email技能:批量发送邮件、自动回复,高效处理工作邮件
运维·人工智能·python·django·自动化·deepseek·openclaw
zhaoshuzhaoshu21 小时前
Python 语法之数据结构详细解析
python
AI问答工程师21 小时前
Meta Muse Spark 的"思维压缩"到底是什么?我用 Python 复现了核心思路(附代码)
人工智能·python