@@ -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
5454echo -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
8282mamba install pyqt -y
8383mamba install matplotlib -y
8484mamba install netcdf4 -y
85+ mamba install h5netcdf -y
86+ mamba install boto3 lxml -y
8587mamba install scipy -y
8688mamba install geos -y
8789mamba 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} "
120122fi
121123sudo 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