Update jupyter.sh

This commit is contained in:
spiritLHLS 2022-12-19 09:30:00 +08:00 committed by GitHub
parent e471e7c502
commit e66b30583e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ install_jupyter() {
fi
# Start Jupyter Server with port 13692 and host 0.0.0.0
nohup jupyter lab --port 13692 --no-browser --ip=0.0.0.0 --allow-root & echo $!
nohup jupyter lab --port 13692 --no-browser --ip=0.0.0.0 --allow-root & green $! & green "后台执行的pid的进程ID和输出日志文件名字如上"
sleep 5
cat nohup.out
@ -121,6 +121,7 @@ query_jupyter_info() {
source activate jupyter-env && jupyter server list && conda deactivate
green "已查询登陆信息如上"
green "如果想要手动查询,输入 source activate jupyter-env && jupyter server list && conda deactivate 即可查询"
}
main() {