当前位置:网站首页>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
边栏推荐
- Conceptual analysis of DDD Domain Driven Design
- The latest hot spot: the use of copper death related genes for tumor prognosis typing!
- ArrayList # sublist these four holes, you get caught accidentally
- Which commercial insurance endowment insurance is good? Ranking of commercial endowment insurance products in 2022
- [digital ic/fpga] booth multiplier
- Kubernetes best practice: graceful termination
- Cloud native database: the outlet of the database, you can also take off
- Continuous testing | test process improvement: practice continuous testing within iterations in coding
- The operation and maintenance boss laughed at me. Don't you know that?
- Jenkins pipeline syntax
猜你喜欢

万名校园开发者花式玩AI,亮点看这张图就够啦!

Opencv learning notes - regions of interest (ROI) and image blending
Deep parsing and implementation of redis pub/sub publish subscribe mode message queue
[mysql_16] variables, process control and cursors

我真傻,招了一堆只会“谷歌”的程序员!

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

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

How is the e-commerce red envelope realized? For interview (typical high concurrency)
![[digital ic/fpga] booth multiplier](/img/42/3da3b1d3cc82cb9c0694241148011b.png)
[digital ic/fpga] booth multiplier

Opencv learning notes - loading and saving images
随机推荐
[Architect (Part 41)] installation of server development and connection to redis database
单基因泛癌+简单实验就能发表7分+
【Go语言刷题篇】Go从0到入门4:切片的高级用法、初级复习与Map入门学习
What should music website SEO do?
[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!
[redisson] analysis of semaphore lock source code
How to evaluate software development projects reasonably?
What is the reason why the video intelligent analysis platform easycvr is locally controllable but the superior equipment cannot control the subordinate equipment?
5分+的单基因泛癌纯生信思路!
Opencv learning notes - matrix normalization normalize() function
LS-DYNA新手入门经验
Adjustment method of easynvr video platform equipment channel page display error
[go language questions] go from 0 to entry 4: advanced usage of slice, elementary review and introduction to map
巧妙构思-铁死亡调节因子分型预后发6+
Database migration tool flyway vs liquibase (II)
基于AM335X开发板 ARM Cortex-A8——Acontis EtherCAT主站开发案例
哪个商业保险养老险好?2022年商业养老保险产品排名
电商红包雨是如何实现的?拿去面试用(典型高并发)
深圳市人民医院程立新课题组提出多组学数据在肝细胞癌的诊断与预后分析的新方法meGPS