Skip to content

Commit bfa8cb2

Browse files
authored
Merge pull request #205 from johrstrom/ood-update-jupyter
update jupyter in the OOD demo
2 parents 46d8b3f + 6273efc commit bfa8cb2

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

ondemand/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ why it's not directly in the shell scripts `PATH`.
631631
We need to add this line to our job's shell script to enable it.
632632

633633
```shell
634-
source /usr/local/jupyter/2.1.4/bin/activate
634+
source /usr/local/jupyter/4.3.5/bin/activate
635635
```
636636

637637
So let's [open the template/script.sh.erb in the file editor](https://localhost:3443/pun/sys/file-editor/edit/home/hpcadmin/ondemand/dev/jupyter/template/script.sh.erb)
@@ -643,7 +643,7 @@ Lines 24 - 31 of `template/script.sh.erb` should now look like this.
643643
# Benchmark info
644644
echo "TIMING - Starting jupyter at: $(date)"
645645
646-
source /usr/local/jupyter/2.1.4/bin/activate
646+
source /usr/local/jupyter/4.3.5/bin/activate
647647
648648
# Launch the Jupyter Notebook Server
649649
set -x
@@ -1109,7 +1109,7 @@ cd "${HOME}"
11091109
# Benchmark info
11101110
echo "TIMING - Starting jupyter at: $(date)"
11111111
1112-
source /usr/local/jupyter/2.1.4/bin/activate
1112+
source /usr/local/jupyter/4.3.5/bin/activate
11131113
11141114
# Launch the Jupyter Notebook Server
11151115
set -x

ondemand/jupyter/template/script.sh.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ cd "${HOME}"
1010
# Start Jupyter Notebook Server
1111
#
1212

13-
source /usr/local/jupyter/2.1.4/bin/activate
13+
source /usr/local/jupyter/4.3.5/bin/activate
1414

1515
# Benchmark info
1616
echo "TIMING - Starting jupyter at: $(date)"
1717

1818
# Launch the Jupyter Notebook Server
1919
set -x
20-
jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>
20+
jupyter lab --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>

slurm/install.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ echo -e "# Disable Avahi (since it does not run inside the containers)\n-A" >> /
109109
log_info "Configuring PCP logger with suitable container defaults.."
110110
sed -i 's#^LOCALHOSTNAME.*$#LOCALHOSTNAME y n "/home/pcp/$(date +%Y)/$(date +%m)/LOCALHOSTNAME/$(date +%Y)-$(date +%m)-$(date +%d)" -r -c /etc/pcp/pmlogger/pmlogger-supremm.config#' /etc/pcp/pmlogger/control.d/local
111111

112+
export JUPYTER_VERSION=4.3.5
113+
112114
log_info "Installing Jupyter.."
113-
python3 -m venv /usr/local/jupyter/2.1.4 --prompt jupyter/2.1.4
114-
source /usr/local/jupyter/2.1.4/bin/activate
115-
pip install jupyterlab==2.1.4 jupyter-console qtconsole ipywidgets plotly==4.8.2 pandas scikit-learn numpy
115+
python3 -m venv /usr/local/jupyter/$JUPYTER_VERSION --prompt jupyter/$JUPYTER_VERSION
116+
source /usr/local/jupyter/$JUPYTER_VERSION/bin/activate
117+
pip install jupyterlab==$JUPYTER_VERSION jupyter-console qtconsole ipywidgets plotly pandas scikit-learn numpy
116118
deactivate
117119

118120
dnf clean all

0 commit comments

Comments
 (0)