From 3550295d9fd413e88c6ef623e46ca4ee0b7035b1 Mon Sep 17 00:00:00 2001 From: ptr33 <94262565+ptr33@users.noreply.github.com> Date: Sun, 22 Jan 2023 15:46:28 +0100 Subject: [PATCH] Install jupyter-dash directly from github soruces. - https://github.com/plotly/jupyter-dash - Latest version fixes a bug for hot reloading of a notebook - https://github.com/plotly/jupyter-dash/issues/108 --- Dockerfile | 13 ++++++++++++- README.md | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9fded5b..37b772f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,6 @@ RUN pip install --upgrade pip && \ 'python-lsp-server[all]' \ jupyterlab-git \ jupyterlab-spreadsheet-editor \ - jupyter-dash \ lckr-jupyterlab-variableinspector # from plotly documentation: install jupyter-dash @@ -49,6 +48,18 @@ RUN pip3 install --upgrade pip && \ apt-get update && \ apt-get install -y pandoc +# install jupyter-dash from repo - https://github.com/plotly/jupyter-dash +WORKDIR /home/jupyter-dash +RUN git clone https://github.com/plotly/jupyter-dash.git +WORKDIR jupyter-dash +RUN pip3 install -r requirements.txt -r requirements-dev.txt && \ + pip3 install -e . a && \ + jupyter nbextension install --sys-prefix --symlink --py jupyter_dash && \ + jupyter nbextension enable --py jupyter_dash && \ + jupyter labextension link extensions/jupyterlab && \ + python setup.py build_js + + RUN jupyter labextension install jupyterlab-filesystem-access && \ jupyter labextension install jupyterlab-spreadsheet && \ jupyter lab build diff --git a/README.md b/README.md index 2f2f05c..5aef872 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ **This Docker container runs as root user!** It can be helpful when e.g. the popular jupyter/datascience-notebook image does not work because it runs as Jovyan user. +This docker container installs jupyter-dash directly from the github sources. + Additional packages can be installed on creation of container by adding to requirements.txt. Changed base url to make operation behind appache reverse proxy easier: http://localhost:8888/jupyter