Ask Your Question
1

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

asked 2018-10-15 05:22:56 -0600

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
1

answered 2018-10-15 13:53:00 -0600

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 http://gap-packages.github.io/Jupyter... 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
1

answered 2018-10-15 13:48:31 -0600

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

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

Stats

Asked: 2018-10-15 05:22:56 -0600

Seen: 77 times

Last updated: Oct 15 '18