atlas200I DK使用1 jupyter lab服务器搭建

jupyter lab服务器安装:

pip install jupyterlab # 安装

jupyter pip install jupyterlab-language-pack-zh-CN # 安装汉化包,需要自己选择语言,自行选择

jupyter lab --generate-config # 上面命令会生成`jupyterlab`配置文件,路径为`~/.jupyter/jupyter_lab_config.py`

jupyter lab password

填写密码并确认密码,会生成`~/.jupyter/jupyter_server_config.json`

查看文件内容,如下图,复制`password`后的一串字符

{

"IdentityProvider": {

"hashed_password": "argon2:argon2idv=19m=10240,t=10,p=8Xrpo8saL+0ncF8fDX8bqdA$kIhiL7Wgedhy+NmX95NkxWzuHIHNvgHJH2pbFCJ/2/I"

}

}

vim ~/.jupyter/jupyter_lab_config.py #

追加一下内容

c.ServerApp.allow_remote_access = True # 允许远程访问

c.ServerApp.allow_root = True # 允许root运行

c.ServerApp.notebook_dir = '工作文件夹' # 设置工作目录,默认为用户家目录

c.ServerApp.ip = '*' # 监听地址

c.ServerApp.port = 8888 # 运行端口,默认8888

c.ServerApp.password = '刚复制的字符串' # 密码

c.ServerApp.open_browser = False # 不打开浏览器

参考:Linux服务器上部署jupyterlab_linux服务器建立jupyterlab-CSDN博客

web无法远程登录jupyter lab:

1、vim /root/.jupyter/jupyter_lab_config.py

找到App.password =

然后在下方加入:

import webbrowser

webbrowser.register('chrome', None, webbrowser.GenericBrowser(u'C:\\Program Files(x86)\\Google\\Chrome\\Application\\chrome.exe'))

c.ServerApp.browser = 'chrome'

2、关闭防火墙

systemctl stop firewalld.service #停止

firewall systemctl disable firewalld.service #禁止firewall开机启动

firewall-cmd --zone=public --add-port=80/tcp --permanent #开启端口

systemctl status firewalld #查看防火墙状态

3、

相关推荐
Franklin2 分钟前
如何解决git HEAD detached 分离头指针问题
git·python·pycharm
deephub11 分钟前
Anthropic 开源 Bloom:基于 LLM 的自动化行为评估框架
人工智能·python·自动化·大语言模型·行为评估
程序员老赵15 分钟前
Nextcloud Docker 容器化部署指南
docker·数据分析·数据可视化
万兴丶15 分钟前
批量转换音频格式工具
python
大学就业之家17 分钟前
智能选岗的陷阱与应对策略
python
chenshi178118 分钟前
安全合规:使用 RPA 批量发布时,如何规避平台封禁风险,实现长效稳定的投喂?
python
superman超哥30 分钟前
仓颉性能瓶颈定位方法深度解析
c语言·开发语言·c++·python·仓颉
岁岁的O泡奶37 分钟前
NSSCTF_crypto_[SWPU 2020]happy
经验分享·python·算法·密码学
武汉唯众智创39 分钟前
“物联网 Python 开发教程”课程教学解决方案
开发语言·python·物联网·物联网技术·物联网 python 开发·python 开发
时光Autistic43 分钟前
【搭建教程】腾讯混元3D模型部署
开发语言·python·3d·github