当前位置:网站首页>服务器配置 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
其它
注意服务器安全组配置以及防火墙放行 开放端口
边栏推荐
猜你喜欢
What are the precautions for MySQL group by
Example tutorial of SQL deduplication

IDEA 项目启动报错 Shorten the command line via JAR manifest or via a classpath file and rerun.

Embedded-c Language-1

Embedded-c Language-2
mysql中取出json字段的小技巧

Machine learning 01: Introduction

First day of learning C language

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

Kafaka技术第一课
随机推荐
腾讯音乐上线新产品“曲易买”,提供音乐商用版权授权
SQL删除重复数据的实例教程
深入理解Redis内存淘汰策略
thinkphp3.2.3
Which is more cost-effective, haqu K1 or haqu H1? Who is more worth starting with?
Domain name resolution, reverse domain name resolution nbtstat
ICML 2022 | Meta提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲
Embedded-c Language-4
一文了解Go语言中的函数与方法的用法
33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)
2022年信息系统管理工程师考试大纲
CMake教程Step5(添加系统自检)
mysql中取出json字段的小技巧
Example tutorial of SQL deduplication
[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
Tips for extracting JSON fields from MySQL
Is it safe to open futures accounts online? Will there be more liars online? Doesn't feel very reliable?
Function sub file writing
In depth understanding of redis memory obsolescence strategy
2022 年 Q2 加密市场投融资报告:GameFi 成为投资关键词
