当前位置:网站首页>服务器配置 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
其它
注意服务器安全组配置以及防火墙放行 开放端口
边栏推荐
- Tita 绩效宝:如何为年中考核做准备?
- 【7.7直播预告】《SaaS云原生应用典型架构》大咖讲师教你轻松构建云原生SaaS化应用,难题一一击破,更有华为周边好礼等你领!
- Check the WiFi password connected to your computer
- 漫画:如何实现大整数相乘?(上) 修订版
- thinkphp3.2.3
- c#图文混合,以二进制方式写入数据库
- Q2 encryption market investment and financing report in 2022: gamefi becomes an investment keyword
- [binary tree] insufficient nodes on the root to leaf path
- Embedded -arm (bare board development) -2
- Judge whether a number is a prime number (prime number)
猜你喜欢
哈趣K1和哈趣H1哪个性价比更高?谁更值得入手?
In depth understanding of redis memory obsolescence strategy
基于Redis实现延时队列的优化方案小结
Learn about MySQL transaction isolation level
Oracle缩表空间的完整解决实例
CMake教程Step4(安装和测试)
Use of ThinkPHP template
WR | 西湖大学鞠峰组揭示微塑料污染对人工湿地菌群与脱氮功能的影响
深入理解Redis内存淘汰策略
Using C language to realize palindrome number
随机推荐
MySQL queries the latest qualified data rows
IDC报告:腾讯云数据库稳居关系型数据库市场TOP 2!
winedt常用快捷键 修改快捷键latex编译按钮
Debug kernel code through proc interface
编译libssh2报错找不到openssl
C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
Example tutorial of SQL deduplication
Judge whether a number is a prime number (prime number)
SQL删除重复数据的实例教程
Tita 绩效宝:如何为年中考核做准备?
2022年信息系统管理工程师考试大纲
CMake教程Step1(基本起点)
Use byte stream to read Chinese from file to console display
CMake教程Step4(安装和测试)
Tita performance treasure: how to prepare for the mid year examination?
Which is more cost-effective, haqu K1 or haqu H1? Who is more worth starting with?
力扣解法汇总1200-最小绝对差
一个满分的项目文档是如何书写的|得物技术
Oracle缩表空间的完整解决实例
漫画:如何实现大整数相乘?(下)