当前位置:网站首页>Jupyter notebook service installation and startup
Jupyter notebook service installation and startup
2022-06-24 12:26:00 【Goose】
0. install
pip3 install jupyter
1. Generate a notebook The configuration file
jupyter notebook --generate-config
After execution, a configuration file will be generated , ~/.jupyter/jupyter_notebook_config.py
2. Set the password
$ jupyter notebook password
Enter password: ****
Verify password: ****
[NotebookPasswordApp] Wrote hashed password to ~/.jupyter/jupyter_notebook_config.json
3. modify jupyter_notebook_config.py
c.NotebookApp.ip='192.168.0.32'
c.NotebookApp.password = u'sha:ce... The ciphertext just copied '
c.NotebookApp.open_browser = False# Do not open the browser after starting the service
c.NotebookApp.port =8888 # You can specify a port , Use this port when accessing
The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'f:/nlp'## Set the startup directory to f:/nlp
4. Background operation
nohup jupyter notebook --allow-root > jupyter.log 2>&1 &
explain :
jupyter.log: Indicates that the standard output will be , Output to jupyter.log file
2>&1: Indicates that the error output is redirected to the label output
attach linux Definition and notebook Start command parameters :
/dev/null Represents an empty device file
0 Express stdin The standard input
1 Express stdout standard output
2 Express stderr The standard error
nohup Express no hang up, Just don't hang up , So after this command is executed, even if the terminal exits , And it won't stop .
jupyter notebook --h
usage: jupyter-notebook [-h] [--pylab [NOTEBOOKAPP.PYLAB]]
[--keyfile NOTEBOOKAPP.KEYFILE]
[--client-ca NOTEBOOKAPP.CLIENT_CA]
[--notebook-dir NOTEBOOKAPP.NOTEBOOK_DIR]
[--port-retries NOTEBOOKAPP.PORT_RETRIES]
[--config NOTEBOOKAPP.CONFIG_FILE]
[--certfile NOTEBOOKAPP.CERTFILE]
[--log-level NOTEBOOKAPP.LOG_LEVEL]
[--browser NOTEBOOKAPP.BROWSER]
[--transport KERNELMANAGER.TRANSPORT]
[--ip NOTEBOOKAPP.IP] [--port NOTEBOOKAPP.PORT] [-y]
[--script] [--no-mathjax] [--no-browser]
[--allow-root] [--debug] [--no-script]
[--generate-config]
optional arguments:
-h, --help show this help message and exit
--pylab [NOTEBOOKAPP.PYLAB]
--keyfile NOTEBOOKAPP.KEYFILE
--client-ca NOTEBOOKAPP.CLIENT_CA
--notebook-dir NOTEBOOKAPP.NOTEBOOK_DIR
--port-retries NOTEBOOKAPP.PORT_RETRIES
--config NOTEBOOKAPP.CONFIG_FILE
--certfile NOTEBOOKAPP.CERTFILE
--log-level NOTEBOOKAPP.LOG_LEVEL
--browser NOTEBOOKAPP.BROWSER
--transport KERNELMANAGER.TRANSPORT
--ip NOTEBOOKAPP.IP
--port NOTEBOOKAPP.PORT
-y, --y
--script
--no-mathjax
--no-browser
--allow-root
--debug
--no-script
--generate-configUsing shortcut keys
边栏推荐
- How to purchase new bonds is it safe to open an account
- Easynvr user login is modified to share the modification process of ip+ user name restriction
- ArrayList#subList这四个坑,一不小心就中招
- [Old Wei makes machines] issue 090: keyboard? host? Full function keyboard host!
- 5 points + single gene pan cancer pure Shengxin idea!
- Practice of dynamic load balancing based on open source tars
- How does the video networking / network penetration tool easynts permanently delete one of the devices?
- 打新债可以申请多少 开户是安全的吗
- Use go to process millions of requests per minute
- FreeRTOS overview and experience
猜你喜欢
[Old Wei makes machines] issue 090: keyboard? host? Full function keyboard host!

AXI低功耗接口

Programmers spend most of their time not writing code, but...
Cloud native database: the outlet of the database, you can also take off

How can a shell script (.Sh file) not automatically close or flash back after execution?

美团基于 Flink 的实时数仓平台建设新进展

Install Kali on the U disk and persist it

如何优雅的写 Controller 层代码?

How to write controller layer code gracefully?

GLOG从入门到入门
随机推荐
RTMP streaming platform easydss video on demand interface search bar development label fuzzy query process introduction
LS-DYNA新手入门经验
电商红包雨是如何实现的?拿去面试用(典型高并发)
Chenglixin research group of Shenzhen People's hospital proposed a new method of multi group data in the diagnosis and prognosis analysis of hepatocellular carcinoma megps
9+! Predicting lymph node status from histology of colorectal cancer by deep learning
[2021 techo youth dry goods sorting post, there is always one you are interested in]
The latest hot spot: the use of copper death related genes for tumor prognosis typing!
分布式系统解决之道:目录、消息队列、事务系统及其他
The operation and maintenance boss laughed at me. Don't you know that?
5分+的单基因泛癌纯生信思路!
VaR in PHP_ export、print_ r、var_ Differences in dump debugging
Automatic reconstruction of pod after modifying resource object
【云驻共创】解读HarmonyOS 应用与服务生态
QT -- the qtabwidget supports dragging tabbar items
怎么申请打新债 开户是安全的吗
【Go语言刷题篇】Go从0到入门4:切片的高级用法、初级复习与Map入门学习
How does easygbs, a national standard platform, solve the problem that information cannot be carried across domains?
计组-总复习
Google Earth engine (GEE) - how to add a legend in the map panel
ArrayList # sublist these four holes, you get caught accidentally