当前位置:网站首页>服务器配置 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
其它
注意服务器安全组配置以及防火墙放行 开放端口
边栏推荐
- C#实现水晶报表绑定数据并实现打印3-二维码条形码
- What else do you not know about new map()
- C # realizes crystal report binding data and printing 3-qr code barcode
- Embedded-c Language-1
- 忽米沄析:工业互联网标识解析与企业信息系统的融合应用
- Is it safe and reliable to open futures accounts on koufu.com? How to distinguish whether the platform is safe?
- Read the basic grammar of C language in one article
- Force deduction solution summary 1200 minimum absolute difference
- Which is more cost-effective, haqu K1 or haqu H1? Who is more worth starting with?
- CMake教程Step3(添加库的使用要求)
猜你喜欢
CMake教程Step4(安装和测试)
Embedded -arm (bare board development) -2
Example tutorial of SQL deduplication
Embedded UC (UNIX System Advanced Programming) -2
Embedded UC (UNIX System Advanced Programming) -1
Machine learning 01: Introduction
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
winedt常用快捷键 修改快捷键latex编译按钮
What are the precautions for MySQL group by
Rider 设置选中单词侧边高亮,去除警告建议高亮
随机推荐
MYSQL group by 有哪些注意事项
Cloud security daily 220705: the red hat PHP interpreter has found a vulnerability of executing arbitrary code, which needs to be upgraded as soon as possible
C#实现水晶报表绑定数据并实现打印3-二维码条形码
Embedded-c Language-2
叩富网开期货账户安全可靠吗?怎么分辨平台是否安全?
Understand the usage of functions and methods in go language
Thoughtworks 全球CTO:按需求构建架构,过度工程只会“劳民伤财”
Embedded UC (UNIX System Advanced Programming) -3
ICML 2022 | Meta提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲
Tips for extracting JSON fields from MySQL
Independent development is a way out for programmers
力扣解法汇总729-我的日程安排表 I
CVPR 2022 best student paper: single image estimation object pose estimation in 3D space
CMake教程Step4(安装和测试)
[binary tree] insufficient nodes on the root to leaf path
Q2 encryption market investment and financing report in 2022: gamefi becomes an investment keyword
漫画:一道数学题引发的血案
CMake教程Step5(添加系统自检)
33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)
Embedded-c Language-3