Skip to content

Commit

Permalink
Some fixes for Jupyter Notebook 7 (jupyter#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 authored and c3HenryHsieh committed Jul 26, 2023
1 parent 7285848 commit 9ea3a6c
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
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ RUN set -x && \
'mamba' \
'notebook' \
'jupyterhub' \
'jupyterlab' && \
'jupyterlab' \
'nbclassic' && \
rm micromamba && \
# Pin major.minor version of python
mamba list python | grep '^python ' | tr -s ' ' | cut -d ' ' -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && \
Expand Down
4 changes: 2 additions & 2 deletions docs/using/recipes.md
Original file line number Diff line number Diff line change
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 --quiet --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
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ RUN mamba install --quiet --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 9ea3a6c

Please sign in to comment.