当前位置:网站首页>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
边栏推荐
- 电商红包雨是如何实现的?拿去面试用(典型高并发)
- GLOG从入门到入门
- AXI低功耗接口
- ArrayList # sublist these four holes, you get caught accidentally
- As one of the bat, what open source projects does Tencent have?
- How to develop mRNA vaccine? 27+ pancreatic cancer antigen and immune subtype analysis to tell you the answer!
- Use go to process millions of requests per minute
- Ingenious conception - iron death regulatory factor classification and prognosis 6+
- How to configure the national standard platform easygbs neutral version?
- How to check the situation that the national standard platform easygbs equipment video cannot be accessed by grabbing packets?
猜你喜欢

【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献

Group planning - General Review

ArrayList#subList这四个坑,一不小心就中招

Insurance app aging service evaluation analysis 2022 issue 06
![[live review] battle code pioneer phase 7: how third-party application developers contribute to open source](/img/fa/e52bd8a1a404a759ef6ba88e8da0f0.png)
[live review] battle code pioneer phase 7: how third-party application developers contribute to open source
[mysql_16] variables, process control and cursors

Installation and operation of libuv

《梦华录》要大结局了,看超前点映不如先来学学它!

电商红包雨是如何实现的?拿去面试用(典型高并发)

美团基于 Flink 的实时数仓平台建设新进展
随机推荐
Install Kali on the U disk and persist it
9+!通过深度学习从结直肠癌的组织学中预测淋巴结状态
Is it safe to apply for new bonds to open an account
As one of the bat, what open source projects does Tencent have?
10 zeros of D
How does easygbs, a national standard platform, solve the problem that information cannot be carried across domains?
[cloud based co creation] interpretation of harmonyos application and service ecology
Istio FAQ: istio init crash
Collation of related papers on root cause analysis
怎样打新债具体操作 开户是安全的吗
【数字IC/FPGA】Booth乘法器
The opportunity to teach cloud development a lesson has finally come!
11+文章-机器学习打造ProTICS框架-深度揭示了不同分子亚型中肿瘤浸润免疫细胞对预后的影响
Programmers spend most of their time not writing code, but...
The solution of distributed system: directory, message queue, transaction system and others
pipeline groovy
ArrayList#subList这四个坑,一不小心就中招
Embedded must learn! Detailed explanation of hardware resource interface - based on arm am335x development board (Part 1)
11+! Methylation modification patterns based on m6A regulatory factors in colon cancer are characterized by different tumor microenvironment immune spectra
单基因泛癌+简单实验就能发表7分+