mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-11 03:52:56 +00:00
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:
@@ -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 && \
|
||||||
|
@@ -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}"
|
||||||
```
|
```
|
||||||
|
@@ -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}"
|
||||||
|
Reference in New Issue
Block a user