Skip to content

Commit

Permalink
Install jupyter-dash directly from github soruces.
Browse files Browse the repository at this point in the history
- https://github.com/plotly/jupyter-dash
- Latest version fixes a bug for hot reloading of a notebook - plotly/jupyter-dash#108
  • Loading branch information
ptr33 committed Jan 22, 2023
1 parent 75200df commit 3550295
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3550295

Please sign in to comment.