Some fixes for Jupyter Notebook 7 (#1944)

* Some fixes for Jupyter Notebook 7

* Fix jupyter nbextension

* Remove explicit port setting
This commit is contained in:
Ayaz Salikhov
2023-07-25 12:51:17 +04:00
committed by GitHub
parent ca6272c2be
commit b8d617dc05
3 changed files with 5 additions and 4 deletions

View File

@@ -38,7 +38,8 @@ WORKDIR /tmp
RUN mamba install --yes \ RUN mamba install --yes \
'notebook' \ 'notebook' \
'jupyterhub' \ 'jupyterhub' \
'jupyterlab' && \ 'jupyterlab' \
'nbclassic' && \
jupyter notebook --generate-config && \ jupyter notebook --generate-config && \
mamba clean --all -f -y && \ mamba clean --all -f -y && \
npm cache clean --force && \ npm cache clean --force && \

View File

@@ -486,7 +486,7 @@ docker run -it --rm \
start.sh jupyter notebook --NotebookApp.token='' 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 NB: this works for classic notebooks only
@@ -499,7 +499,7 @@ USER ${NB_UID}
RUN pip install --no-cache-dir jupyter_contrib_nbextensions && \ RUN pip install --no-cache-dir jupyter_contrib_nbextensions && \
jupyter contrib nbextension install --user && \ jupyter contrib nbextension install --user && \
# can modify or enable additional extensions here # 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 "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}" fix-permissions "/home/${NB_USER}"
``` ```

View File

@@ -64,7 +64,7 @@ RUN mamba install --yes \
# Install facets which does not have a pip or conda package at the moment # Install facets which does not have a pip or conda package at the moment
WORKDIR /tmp WORKDIR /tmp
RUN git clone https://github.com/PAIR-code/facets.git && \ 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 && \ rm -rf /tmp/facets && \
fix-permissions "${CONDA_DIR}" && \ fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}" fix-permissions "/home/${NB_USER}"