Install Anaconda
Jupyter Notebook
conda activate [env]
conda install jupyter notebook
# set password
jupyter notebook password
# run jupyter notebook in the background
nohup jupyter notebook --port [port] > ./.jupyter.log 2>&1 &
Tips
1.1 nohup
nohup jupyter notebook --port [port] > ./.jupyter.log 2>&1 &
# or
nohup jupyter lab --port [port] --ip=0.0.0.0 --no-browser --notebook-dir=./ > ./.jupyter.log 2>&1 &
- 0 – stdin (standard input),1 – stdout (standard output),2 – stderr (standard error) 。
- 2>&1是将标准错误重定向到标准输出(&1),标准输出(&1)再被重定向输入到.jupyter.log文件中。