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、

相关推荐
2501_941111512 小时前
高级爬虫技巧:处理JavaScript渲染(Selenium)
jvm·数据库·python
bitbrowser3 小时前
哪些指纹浏览器支持模拟SSL指纹
网络·python·网络协议·ssl
limenga1024 小时前
TensorFlow Keras:快速搭建神经网络模型
人工智能·python·深度学习·神经网络·机器学习·tensorflow
心软小念5 小时前
用Python requests库玩转接口自动化测试!测试工程师的实战秘籍
java·开发语言·python
sanggou6 小时前
【Python爬虫】手把手教你从零开始写爬虫,小白也能轻松学会!(附完整源码)
开发语言·爬虫·python
geng_zhaoying6 小时前
在VPython中使用向量计算3D物体移动
python·3d·vpython
半tour费7 小时前
TextCNN-NPU移植与性能优化实战
python·深度学习·分类·cnn·华为云
电商API_180079052477 小时前
淘宝商品详情 API 性能优化秘籍:QPS 提升 5 倍的技术方案
大数据·性能优化·数据挖掘·数据分析·网络爬虫
普通网友7 小时前
使用Flask快速搭建轻量级Web应用
jvm·数据库·python
百锦再7 小时前
第17章 模式与匹配
开发语言·后端·python·rust·django·内存·抽象