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

相关推荐
Jackson@ML29 分钟前
如何快速高效学习Python?
开发语言·python
UFIT2 小时前
Python函数与模块笔记
开发语言·python
言之。2 小时前
别学了,打会王者吧
java·python·mysql·容器·spark·php·html5
YiSLWLL3 小时前
使用Tauri 2.3.1+Leptos 0.7.8开发桌面小程序汇总
python·rust·sqlite·matplotlib·visual studio code
花酒锄作田3 小时前
[flask]自定义请求日志
python·flask
SsummerC5 小时前
【leetcode100】组合总和Ⅳ
数据结构·python·算法·leetcode·动态规划
Tandy12356_5 小时前
Godot开发2D冒险游戏——第一节:主角登场!
python·游戏引擎·godot
西柚小萌新6 小时前
【Python爬虫基础篇】--4.Selenium入门详细教程
爬虫·python·selenium
橘猫云计算机设计6 小时前
springboot基于hadoop的酷狗音乐爬虫大数据分析可视化系统(源码+lw+部署文档+讲解),源码可白嫖!
数据库·hadoop·spring boot·爬虫·python·数据分析·毕业设计
YOULANSHENGMENG6 小时前
linux 下python 调用c++的动态库的方法
c++·python