Ask Your Question

Install optional packages (eg extra Jupyter kernels) on top of conda-installed SageMath

asked 2018-10-15 12:22:56 +0200

slelievre gravatar image

Suppose one has installed SageMath using the conda package.

How does one then install optional packages? It seems sage -i is not active there.

For example, what would be the replacement for

$ sage -i gap_jupyter         # install Jupyter kernel for GAP 4.8
$ sage -i pari_jupyter        # install Jupyter kernel for PARI/GP
$ sage -i r_jupyter           # install Jupyter kernel for R
$ sage -i singular_jupyter    # install Jupyter kernel for Singular

if one is using a conda-installed Jupyter and SageMath?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-10-15 20:48:31 +0200

isuruf gravatar image

For the R kernel, you can do conda install r-irkernel -c conda-forge

For the others, we'd like to have conda packages. Let me know if you are interested in supporting them.

Pari kernel can be installed using pip. You can do CPATH=$CONDA_PREFIX/include pip install pari_jupyter Singular kernel can be installed using pip. You can do CPATH=$CONDA_PREFIX/include pip install PySingular jupyter-kernel-singular

edit flag offensive delete link more



They are all available in conda-forge now.

$ conda install gap -c conda-forge

$ conda install pari_jupyter -c conda-forge

$ conda install r-irkernel -c conda-forge

$ conda install jupyter-kernel-singular -c conda-forge

isuruf gravatar imageisuruf ( 2019-08-06 15:17:44 +0200 )edit

What about smaller packages such as plantri?

SimonM gravatar imageSimonM ( 2019-10-01 16:32:19 +0200 )edit

answered 2018-10-15 20:53:00 +0200

nbruin gravatar image

If you install SageMath using conda, does it end up as part of a "conda" python? In that case, I would think you can just revert to the usual jupyter way of installing kernels. For Gap you'd end up following the instructions at and for the other kernels there will be similar documentation (in most cases there will be some "pip install" procedure). You should make sure that you're calling the right python, of course.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-10-15 12:22:56 +0200

Seen: 889 times

Last updated: Oct 15 '18