当前位置:网站首页>服务器配置 jupyter环境
服务器配置 jupyter环境
2022-07-05 17:01:00 【追光少年羽】
服务器环境
随便什么服务器环境都行
配置
安装依赖,虚拟环境更好
pip3 install jupyter
进入ipython交互界面获取配置文件所需密码
from notebook.auth import passwd
passwd() #这里需要注意生成的密码种类

配置文件生成与修改
jupyter notebook --generate-config
vim /root/.jupyter/jupyter_notebook_config.py
参数设置
c.NotebookApp.ip='0.0.0.0' # 设置所有ip都可以访问
c.NotebookApp.password ='argon2:$ar...' # 之前得到的密文密码
c.NotebookApp.open_browser = False # 禁止自动打开浏览器
c.NotebookApp.port =9999 # 服务启动的端口,随便设
c.NotebookApp.allow_root = True #不用在启动时加--allow-root
c.NotebookApp.notebook_dir = "/usr/jupyter_files" #配置启动目录
启动
jupyter notebook
nohup jupyter notebook --allow-root & #关闭终端后还能运行
#其中nohup表示不挂断地运行命令、 &表示在后台运行 一般两个一起用nohup command &
可以配置对应的外部端口以及对应的配置文件和jupyter打开后的根目录
关闭
ps -aux|grep jupyter-notebook #查找进程号
kill -9 PID
插件安装
pip3 install jupyter_contrib_nbextensions
jupyter contrib nbextension install
pip3 install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable
jupyter nbextension enable
其它
注意服务器安全组配置以及防火墙放行 开放端口
边栏推荐
- 漫画:寻找股票买入卖出的最佳时机
- 2022年信息系统管理工程师考试大纲
- Kafaka技术第一课
- flask解决CORS ERR 问题
- Design of electronic clock based on 51 single chip microcomputer
- 统计php程序运行时间及设置PHP最长运行时间
- ICML 2022 | Meta propose une méthode robuste d'optimisation bayésienne Multi - objectifs pour faire face efficacement au bruit d'entrée
- Detailed explanation of printf() and scanf() functions of C language
- Judge whether a number is a prime number (prime number)
- Rider set the highlighted side of the selected word, remove the warning and suggest highlighting
猜你喜欢

CVPR 2022 best student paper: single image estimation object pose estimation in 3D space
MySql 查询符合条件的最新数据行

Kafaka技术第一课

Design of electronic clock based on 51 single chip microcomputer

机器学习01:绪论

CMake教程Step2(添加库)

CVPR 2022最佳学生论文:单张图像估计物体在3D空间中的位姿估计
Learn about MySQL transaction isolation level

WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响

ternary operator
随机推荐
IDEA 项目启动报错 Shorten the command line via JAR manifest or via a classpath file and rerun.
C language to get program running time
Example tutorial of SQL deduplication
世界上最难的5种编程语言
[Web attack and Defense] WAF detection technology map
Understand the usage of functions and methods in go language
How to write a full score project document | acquisition technology
Tita 绩效宝:如何为年中考核做准备?
Embedded-c Language-3
Embedded -arm (bare board development) -2
C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
Cartoon: how to multiply large integers? (integrated version)
CMake教程Step3(添加库的使用要求)
Summary of optimization scheme for implementing delay queue based on redis
thinkphp3.2.3
关于mysql中的json解析函数JSON_EXTRACT
2022 年 Q2 加密市场投融资报告:GameFi 成为投资关键词
mongodb(快速上手)(一)
Embedded-c language-6
mysql5.6解析JSON字符串方式(支持复杂的嵌套格式)
