ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 01 Oct 2019 16:32:19 +0200Install optional packages (eg extra Jupyter kernels) on top of conda-installed SageMathhttps://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/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?
Mon, 15 Oct 2018 12:22:56 +0200https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/Answer by nbruin for <p>Suppose one has installed SageMath using the conda package.</p>
<p>How does one then install optional packages?
It seems <code>sage -i</code> is not active there.</p>
<p>For example, what would be the replacement for</p>
<pre><code>$ 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
</code></pre>
<p>if one is using a conda-installed Jupyter and SageMath?</p>
https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?answer=43957#post-id-43957If 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/JupyterKernel/doc/chap1.html#X8360C04082558A12 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.
Mon, 15 Oct 2018 20:53:00 +0200https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?answer=43957#post-id-43957Answer by isuruf for <p>Suppose one has installed SageMath using the conda package.</p>
<p>How does one then install optional packages?
It seems <code>sage -i</code> is not active there.</p>
<p>For example, what would be the replacement for</p>
<pre><code>$ 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
</code></pre>
<p>if one is using a conda-installed Jupyter and SageMath?</p>
https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?answer=43956#post-id-43956For 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`Mon, 15 Oct 2018 20:48:31 +0200https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?answer=43956#post-id-43956Comment by SimonM for <p>For the R kernel, you can do <code>conda install r-irkernel -c conda-forge</code></p>
<p>For the others, we'd like to have conda packages. Let me know if you are interested in supporting them.</p>
<p>Pari kernel can be installed using pip. You can do <code>CPATH=$CONDA_PREFIX/include pip install pari_jupyter</code>
Singular kernel can be installed using pip. You can do <code>CPATH=$CONDA_PREFIX/include pip install PySingular jupyter-kernel-singular</code></p>
https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?comment=48122#post-id-48122What about smaller packages such as plantri?Tue, 01 Oct 2019 16:32:19 +0200https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?comment=48122#post-id-48122Comment by isuruf for <p>For the R kernel, you can do <code>conda install r-irkernel -c conda-forge</code></p>
<p>For the others, we'd like to have conda packages. Let me know if you are interested in supporting them.</p>
<p>Pari kernel can be installed using pip. You can do <code>CPATH=$CONDA_PREFIX/include pip install pari_jupyter</code>
Singular kernel can be installed using pip. You can do <code>CPATH=$CONDA_PREFIX/include pip install PySingular jupyter-kernel-singular</code></p>
https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?comment=47410#post-id-47410They 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
```Tue, 06 Aug 2019 15:17:44 +0200https://ask.sagemath.org/question/43952/install-optional-packages-eg-extra-jupyter-kernels-on-top-of-conda-installed-sagemath/?comment=47410#post-id-47410