Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ipygany and pythreejs to dolfinx/lab. #2288

Merged
merged 4 commits into from
Jul 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,18 @@ RUN apt-get -qq update && \
# available on pypi for linux/arm64.
# matplotlib improves plotting quality with better color maps and
# properly rendering colorbars.
# pythreejs and ipygany are two backends of pyvista not requiring a framebuffer,
# and are therefore preferred in notebooks
RUN dpkgArch="$(dpkg --print-architecture)"; \
case "$dpkgArch" in amd64) \
pip3 install --no-cache-dir pyvista==${PYVISTA_VERSION} ;; \
esac; \
pip3 install --no-cache-dir matplotlib
pip3 install --no-cache-dir pyvista==${PYVISTA_VERSION} && \
pip3 install --no-cache-dir matplotlib && \
pip3 install --no-cache-dir pythreejs ipygany && \
pip3 cache purge ;; \
esac;

# Enable ipygany in jupyter
RUN jupyter nbextension enable --py --sys-prefix ipygany

# Jupyter Notebook kernel specification for complex build DOLFINx
ADD dolfinx/docker/complex-kernel.json /usr/local/share/jupyter/kernels/python3-complex/kernel.json
Expand Down