Update jupyter.sh

This commit is contained in:
spiritLHLS 2022-12-19 11:49:08 +08:00 committed by GitHub
parent 1603cf22e9
commit 94d09359a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,9 +78,10 @@ install_jupyter() {
fi
# Get the current system name
system_name=$(uname)
# Check if the system is Ubuntu
if [ "$system_name" == "Ubuntu" ]; then
ubuntu_version=$(lsb_release -rs)
# Check if the Ubuntu version is 18.04, 20.04, or 22.04
if [ "$ubuntu_version" == "18.04" ] || [ "$ubuntu_version" == "20.04" ] || [ "$ubuntu_version" == "22.04" ]; then
# The system is Ubuntu 18.04, 20.04, or 22.04
source activate jupyter-env
sleep 1
# Start Jupyter Server with port 13692 and host 0.0.0.0