Skip to content

Commit

Permalink
Some fixes for Jupyter Notebook 7 (#1944)
Browse files Browse the repository at this point in the history
* Some fixes for Jupyter Notebook 7

* Fix jupyter nbextension

* Remove explicit port setting
  • Loading branch information
mathbunnyru committed Jul 25, 2023
1 parent ca6272c commit b8d617d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion base-notebook/Dockerfile
Expand Up @@ -38,7 +38,8 @@ WORKDIR /tmp
RUN mamba install --yes \
'notebook' \
'jupyterhub' \
'jupyterlab' && \
'jupyterlab' \
'nbclassic' && \
jupyter notebook --generate-config && \
mamba clean --all -f -y && \
npm cache clean --force && \
Expand Down
4 changes: 2 additions & 2 deletions docs/using/recipes.md
Expand Up @@ -486,7 +486,7 @@ docker run -it --rm \
start.sh jupyter notebook --NotebookApp.token=''
```

## Enable nbextension spellchecker for markdown (or any other nbextension)
## Enable nbclassic-extension spellchecker for markdown (or any other nbclassic-extension)

NB: this works for classic notebooks only

Expand All @@ -499,7 +499,7 @@ USER ${NB_UID}
RUN pip install --no-cache-dir jupyter_contrib_nbextensions && \
jupyter contrib nbextension install --user && \
# can modify or enable additional extensions here
jupyter nbextension enable spellchecker/main --user && \
jupyter nbclassic-extension enable spellchecker/main --user && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
```
Expand Down
2 changes: 1 addition & 1 deletion scipy-notebook/Dockerfile
Expand Up @@ -64,7 +64,7 @@ RUN mamba install --yes \
# Install facets which does not have a pip or conda package at the moment
WORKDIR /tmp
RUN git clone https://github.com/PAIR-code/facets.git && \
jupyter nbextension install facets/facets-dist/ --sys-prefix && \
jupyter nbclassic-extension install facets/facets-dist/ --sys-prefix && \
rm -rf /tmp/facets && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
Expand Down

0 comments on commit b8d617d

Please sign in to comment.