From d2e20a3fa1a899b9f9cd8e8de17597d679a0786e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 4 Nov 2018 00:53:14 +0000 Subject: [PATCH] Using system SageMath instead of Conda's --- jupyterlab/Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jupyterlab/Dockerfile b/jupyterlab/Dockerfile index efdf8e0..a8521c7 100644 --- a/jupyterlab/Dockerfile +++ b/jupyterlab/Dockerfile @@ -12,6 +12,10 @@ RUN apt-get update && \ gfortran \ gcc \ scilab \ + pari-gp \ + libpari-dev \ + sagemath \ + sagemath-jupyter \ libgmp-dev \ && apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -41,7 +45,7 @@ RUN conda install --quiet --yes \ 'r-htmlwidgets=1.0*' \ 'r-hexbin=1.27*' \ 'jupyterhub' \ - 'sage=8.*' \ +# 'sage=8.*' \ 'julia=1.0*' && \ conda clean -tipsy && \ fix-permissions $CONDA_DIR @@ -54,5 +58,10 @@ RUN pip install \ scilab-kernel && \ fix-permissions $CONDA_DIR +# Fix SageMath kernel +USER root +RUN sed -i 's/"\/usr\/bin\/sage"/"env", "PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin", "\/usr\/bin\/sage"/' /usr/share/jupyter/kernels/sagemath/kernel.json +USER $NB_UID + # Add conda env hook COPY ./conda-activate.sh /usr/local/bin/before-notebook.d/