Skip to content

Commit 619958c

Browse files
committed
Added packages to jupyter env setup
1 parent 0c89c35 commit 619958c

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

ECCO-ACCESS/Cloud_access_to_ECCO_datasets/jupyter_env_setup.sh

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ source ~/.bashrc
5050

5151
# create jupyter environment under /tmp/conda/envs/
5252
# (in EBS storage to save space in home directory)
53-
mamba create --name jupyter python=3.8 -y
53+
mamba create --name jupyter python=3.11 -y
5454
echo -e "${red_start}Created jupyter environment${nocolor_start}"
5555

5656
# install python packages (using mamba) in jupyter environment
@@ -82,6 +82,8 @@ mamba install qt-main -y
8282
mamba install pyqt -y
8383
mamba install matplotlib -y
8484
mamba install netcdf4 -y
85+
mamba install h5netcdf -y
86+
mamba install boto3 lxml -y
8587
mamba install scipy -y
8688
mamba install geos -y
8789
mamba install proj pyproj -y
@@ -119,16 +121,3 @@ if [ $earthdata_cred_stored -eq 0 ]; then
119121
echo -e "\n${red_start}NASA Earthdata authentication info archived in ~\/.netrc${nocolor_start}"
120122
fi
121123
sudo chmod 400 ~/.netrc
122-
123-
# set up Jupyter lab, to be opened in a tmux session using password
124-
PW="$(python3 -c 'from jupyter_server.auth import passwd; import getpass; print(passwd(getpass.getpass(), algorithm="sha256"))')"
125-
jlab_start="\'mamba activate jupyter && jupyter lab --no-browser --autoreload --port=9889 --ip=\'127.0.0.1\' --NotebookApp.token=\'\' --NotebookApp.password=\"$PW\" --notebook-dir=\"~/ECCO-v4-Python-Tutorial/Tutorials_as_Jupyter_Notebooks\" \'"
126-
tmux new -d -s jupyterlab ${jlab_start}
127-
128-
echo -e "${red_start}Started Jupyter lab in tmux session jupyterlab"
129-
echo -e "${red_start}Access from your local machine in a browser window at"
130-
echo -e "${blue_start}http://127.0.0.1:9889/"
131-
echo -e "${red_start}tmux session can be accessed with"
132-
echo -e "${blue_start}tmux -a -t jupyterlab"
133-
echo -e "${red_start}and terminated with"
134-
echo -e "${blue_start}tmux kill-ses -t jupyterlab${nocolor_start}"

0 commit comments

Comments
 (0)