当前位置:网站首页>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
边栏推荐
- ArrayList#subList这四个坑,一不小心就中招
- How can a shell script (.Sh file) not automatically close or flash back after execution?
- 2022年有什么低门槛的理财产品?钱不多
- [Architect (Part 41)] installation of server development and connection to redis database
- Programmers spend most of their time not writing code, but...
- Identification of new prognostic DNA methylation features in uveal melanoma by 11+ based on methylation group and transcriptome analysis~
- Installation and operation of libuv
- VaR in PHP_ export、print_ r、var_ Differences in dump debugging
- Opencv learning notes - cv:: mat class
- Realization of alarm clock with AHK
猜你喜欢

GTEST from getting started to getting started

链接器 --- Linker

Insurance app aging service evaluation analysis 2022 issue 06

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

计组-总复习

Installation and operation of libuv

Linker --- linker

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

Basic path test of software test on the function of the previous day

GTest从入门到入门
随机推荐
VaR in PHP_ export、print_ r、var_ Differences in dump debugging
Opencv learning notes - cv:: mat class
Install MySQL in docker and modify my CNF profile
[2021 techo youth dry goods sorting post, there is always one you are interested in]
怎样购买打新债 开户是安全的吗
What are the low threshold financial products in 2022? Not much money
Opencv learning notes -- Separation of color channels and multi-channel mixing
Continuous testing | test process improvement: practice continuous testing within iterations in coding
Is it safe to apply for new bonds to open an account
Install Kali on the U disk and persist it
How to make Baidu quickly include its own personal website?
Can Tencent's tendis take the place of redis?
How can a shell script (.Sh file) not automatically close or flash back after execution?
Is it safe to apply for new bonds to open an account
[206] use PHP language to generate the code of go language
我真傻,招了一堆只会“谷歌”的程序员!
炒伦敦金短线稳定赚钱技巧?在哪里炒伦敦金安全靠谱?
Is it safe to open an account under the conditions of new bonds
How to check the situation that the national standard platform easygbs equipment video cannot be accessed by grabbing packets?
Reading at night -- about microservices and containers