Skip to content

Commit

Permalink
Using system SageMath instead of Conda's
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 4, 2018
1 parent c3a8ca9 commit d2e20a3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion jupyterlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down Expand Up @@ -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
Expand All @@ -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/

0 comments on commit d2e20a3

Please sign in to comment.