当前位置:网站首页>服务器配置 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
其它
注意服务器安全组配置以及防火墙放行 开放端口
边栏推荐
- Check the WiFi password connected to your computer
- Embedded UC (UNIX System Advanced Programming) -3
- Alpha conversion from gamma space to linner space under URP (II) -- multi alpha map superposition
- Learn about MySQL transaction isolation level
- 深入理解Redis内存淘汰策略
- Tita performance treasure: how to prepare for the mid year examination?
- Embedded -arm (bare board development) -1
- Error in compiling libssh2. OpenSSL cannot be found
- 一文了解Go语言中的函数与方法的用法
- thinkphp3.2.3
猜你喜欢
Machine learning 01: Introduction
33:第三章:开发通行证服务:16:使用Redis缓存用户信息;(以减轻数据库的压力)
IDC报告:腾讯云数据库稳居关系型数据库市场TOP 2!
Database design in multi tenant mode
CVPR 2022 best student paper: single image estimation object pose estimation in 3D space
High number | summary of calculation methods of volume of rotating body, double integral calculation of volume of rotating body
Embedded UC (UNIX System Advanced Programming) -2
Oracle缩表空间的完整解决实例
Rider 设置选中单词侧边高亮,去除警告建议高亮
基于51单片机的电子时钟设计
随机推荐
33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)
mongodb(快速上手)(一)
張平安:加快雲上數字創新,共建產業智慧生態
About JSON parsing function JSON in MySQL_ EXTRACT
flask解决CORS ERR 问题
CMake教程Step3(添加库的使用要求)
Use JDBC technology and MySQL database management system to realize the function of course management, including adding, modifying, querying and deleting course information.
How MySQL uses JSON_ Extract() takes JSON value
MySQL queries the latest qualified data rows
ICML 2022 | Meta propose une méthode robuste d'optimisation bayésienne Multi - objectifs pour faire face efficacement au bruit d'entrée
[7.7 live broadcast preview] the lecturer of "typical architecture of SaaS cloud native applications" teaches you to easily build cloud native SaaS applications. Once the problem is solved, Huawei's s
Cartoon: looking for the k-th element of an unordered array (Revised)
Use of ThinkPHP template
菜刀,蚁剑,冰蝎,哥斯拉的流量特征
Which is more cost-effective, haqu K1 or haqu H1? Who is more worth starting with?
What are the precautions for MySQL group by
First day of learning C language
Embedded -arm (bare board development) -1
2022 年 Q2 加密市场投融资报告:GameFi 成为投资关键词
华为云云原生容器综合竞争力,中国第一!