当前位置:网站首页>服务器配置 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
其它
注意服务器安全组配置以及防火墙放行 开放端口
边栏推荐
- 7. Scala class
- Debug kernel code through proc interface
- Cmake tutorial step6 (add custom commands and generate files)
- 激动人心!2022开放原子全球开源峰会报名火热开启!
- 世界上最难的5种编程语言
- Check the WiFi password connected to your computer
- WR | Jufeng group of West Lake University revealed the impact of microplastics pollution on the flora and denitrification function of constructed wetlands
- stirring! 2022 open atom global open source summit registration is hot!
- C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
- ICML 2022 | Meta提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲
猜你喜欢

MySQL之知识点(六)
Summary of optimization scheme for implementing delay queue based on redis

基于51单片机的电子时钟设计

VBA驱动SAP GUI实现办公自动化(二):判断元素是否存在

Rider set the highlighted side of the selected word, remove the warning and suggest highlighting
MySQL queries the latest qualified data rows

WR | Jufeng group of West Lake University revealed the impact of microplastics pollution on the flora and denitrification function of constructed wetlands

Judge whether a string is a full letter sentence

Use JDBC technology and MySQL database management system to realize the function of course management, including adding, modifying, querying and deleting course information.
mysql中取出json字段的小技巧
随机推荐
ICML 2022 | Meta提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲
CMake教程Step6(添加自定义命令和生成文件)
EasyX second lesson
High number | summary of calculation methods of volume of rotating body, double integral calculation of volume of rotating body
Summary of optimization scheme for implementing delay queue based on redis
Flask solves the problem of CORS err
Force deduction solution summary 729- my schedule I
Cartoon: interesting [pirate] question
一文了解Go语言中的函数与方法的用法
ClickHouse(03)ClickHouse怎么安装和部署
33:第三章:开发通行证服务:16:使用Redis缓存用户信息;(以减轻数据库的压力)
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
Is it safe for China Galaxy Securities to open an account? How long can I buy stocks after opening an account
Beijing internal promotion | the machine learning group of Microsoft Research Asia recruits full-time researchers in nlp/ speech synthesis and other directions
[Web attack and Defense] WAF detection technology map
CVPR 2022最佳学生论文:单张图像估计物体在3D空间中的位姿估计
7. Scala class
First day of learning C language
激动人心!2022开放原子全球开源峰会报名火热开启!
Cartoon: a bloody case caused by a math problem
