From c62eaa7aee2c3f9b9989f5ce71f53cc445d8bee1 Mon Sep 17 00:00:00 2001 From: Brian Kim Date: Tue, 29 Aug 2023 15:29:26 -0700 Subject: [PATCH] Add line to remove cell toolbar extension. --- dockerfiles/r-stat-301/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dockerfiles/r-stat-301/Dockerfile b/dockerfiles/r-stat-301/Dockerfile index 3059ea2..2ae1f78 100644 --- a/dockerfiles/r-stat-301/Dockerfile +++ b/dockerfiles/r-stat-301/Dockerfile @@ -39,6 +39,9 @@ RUN mamba update --quiet --file /tmp/conda-linux-64.lock && \ fix-permissions "/home/${NB_USER}" && \ Rscript -e "install.packages('faux', repos='http://cran.us.r-project.org')" +# Disable the cell toolbar (which ignores metadata and students often accidentally click + delete grading cells) +RUN jupyter labextension disable @jupyterlab/cell-toolbar-extension + # Configure shortcuts-extension to remove Shift-M cell merge shortcut COPY shortcuts.jupyterlab-settings /home/${NB_USER}/.jupyter/lab/user-settings/\@jupyterlab/shortcuts-extension/shortcuts.jupyterlab-settings