Update jupyter.sh

This commit is contained in:
spiritLHLS 2022-12-19 10:36:35 +08:00 committed by GitHub
parent 2cfc80cd59
commit cf2c2cb9df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ install_jupyter() {
# Create a new conda environment and install jupyter # Create a new conda environment and install jupyter
conda create -n jupyter-env python=3 conda create -n jupyter-env python=3
sleep 5 sleep 5
source activate jupyter-env > /dev/null 2>&1 source activate jupyter-env
sleep 1 sleep 1
conda install jupyter jupyterlab conda install jupyter jupyterlab
@ -76,7 +76,9 @@ install_jupyter() {
sudo firewall-cmd --add-port=13692/tcp --permanent sudo firewall-cmd --add-port=13692/tcp --permanent
sudo firewall-cmd --reload sudo firewall-cmd --reload
fi fi
source activate jupyter-env
sleep 1
# Start Jupyter Server with port 13692 and host 0.0.0.0 # Start Jupyter Server with port 13692 and host 0.0.0.0
green "后台执行的pid的进程ID和输出日志文件名字如下" green "后台执行的pid的进程ID和输出日志文件名字如下"
nohup jupyter lab --port 13692 --no-browser --ip=0.0.0.0 --allow-root & green $! nohup jupyter lab --port 13692 --no-browser --ip=0.0.0.0 --allow-root & green $!