ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 25 Oct 2020 00:08:59 -0500install sagemath into jupyter in windows 10 rather than the reversehttps://ask.sagemath.org/question/54022/install-sagemath-into-jupyter-in-windows-10-rather-than-the-reverse/ Okay, this is backwards from the usual. Sagemath failed for some odd reason and a reinstall didn't work. In the meantime, though, I've installed Anaconda, which has the Juptyer notebook, which accepts the Sagemath kernel. Is it possible to install the kernel into Jupyter, rather than the usual, in which sagemath installs jupyter? A kernel is a kernel so it seems possible but I've looked around and can't find a way. It only seems to work in Linux and I'm using Windows. cybervigilanteSun, 25 Oct 2020 00:08:59 -0500https://ask.sagemath.org/question/54022/Sagemath for Windows: a giant headachehttps://ask.sagemath.org/question/47747/sagemath-for-windows-a-giant-headache/Hi everyone,
I've encountered two serious issues when trying to use Sagemath on Windows:
1) It is incompatible with any package that requires Anaconda for installation (e.g. QuTiP, etc..)
2) It is incompatible with popular commercial-grade Python IDE's (e.g. *PyCharm* will not recognize the Sage interpreter)
The reason why this is specific to Windows is because, **on Mac, Sage can be installed through Anaconda** (see [anaconda.org/conda-forge/sage](https://anaconda.org/conda-forge/sage) for details), thus circumventing the above issues. So everything works like a dream on Mac OS X. Here are my questions:
*1) Why is there such a disparity between the Windows and Mac situations?*
*2) Can we expect Anaconda support anytime soon? Or is it a waste of time refreshing the sagemath section of the [conda-forge](https://anaconda.org/conda-forge/sage) site from time to time?*
If anyone knows how any of these issues might be resolved (possibly by not needing to use Anaconda), please let me know! In any case, if I can't resolve these issues, then I am most likely going to revert to using *Mathematica*, which is sad, because I like how Sage is designed.droberts01Mon, 02 Sep 2019 23:39:39 -0500https://ask.sagemath.org/question/47747/Anaconda - Sage conflict in .bashrchttps://ask.sagemath.org/question/43889/anaconda-sage-conflict-in-bashrc/I can't get Anaconda and Sage to play nicely with each other.
This is on a new install of Linux Mint 19. I installed sage from the repository and everything working fine. Then I installed Anaconda as directed on Anaconda's Linux installation instructions , including having the installer add to the PATH in ~/.bashrc. This broke sage. When I try to run it now, I get the error
Traceback (most recent call last):
File " /usr/share/sagemath/bin/sage-ipython", line 6, in <module>
from sage.repl.interpreter import SageTerminalApp
ImportError: No module named 'sage'
When I comment out the lines Anaconda added to my .bashrc file where it's adding to the PATH, Sage works again, but Anaconda is broken. What's causing this problem? How can I get the two to work at the same time?ttshaw1Tue, 09 Oct 2018 16:53:54 -0500https://ask.sagemath.org/question/43889/SageMath and interact / ipywidgets with jupyterhttps://ask.sagemath.org/question/41269/sagemath-and-interact-ipywidgets-with-jupyter/I got the SageMath kernel working well inside my anaconda distribution's copy of jupyter, following [these instructions](https://stackoverflow.com/a/41595015), so I can open SageMath notebooks using anaconda jupyter and they run perfectly fine -- almost.
I would like to get interact elements / ipywidgets working when I use SageMath as a kernel in anaconda jupyter, but with my current configuration (hopefully described in sufficient detail below), I get the following error message in the console
>[IPKernelApp] WARNING | Widget Javascript not detected. It may not be installed or enabled properly.
and the notebook simply outputs the initial value of the function with no interactivity.
---
I'm running SageMath 8.1 on macOS. I've been able to get interact elements and ipywidgets with SageMath code running in the SageMath jupyter notebook interface (not sure if this was necessary, but I ran
`/local/bin/jupyter nbextension enable --py widgetsnbextension`
in the SageMath directory.) Everything works as expected, i.e. if I run `sagemath -n jupyter` and open a notebook containing:
>import ipywidgets as widgets
>
>widgets.IntSlider(
value=7,
min=0,
max=10,
step=1,
description='Test:',
disabled=False,
continuous_update=False,
orientation='horizontal',
readout=True,
readout_format='d'
)
I get a slider widget which works.
Similarly, examples from this [interact tutorial](https://wiki.sagemath.org/interact/graphics) on the SageMath wiki run perfectly fine in SageMath jupyter.
I also have an up-to-date anaconda install of jupyter where the ipywidgets nbextension has been enabled; the above ipywidgets code can be run in anaconda jupyter with the ordinary python kernel and works fine.
----
[The real reason I am asking this question is I would like to figure out how to get interactive widgets working in jupyterlab with the SageMath kernel, but I'm guessing that if the above question can be answered, I can get everything else working as well.]j.c.Mon, 26 Feb 2018 12:16:26 -0600https://ask.sagemath.org/question/41269/Sage is probably interfering with anacondahttps://ask.sagemath.org/question/39866/sage-is-probably-interfering-with-anaconda/I think Sage is interfering with anaconda, and I want to remove check if this is so. For I saw that to uninstall sage (I'm on a Mac) I just need to put it in the trash. Is this so? If I put it in the trash and still cannot run Jupyter from anaconda, does it mean that I have some other problem? roi.holtzmanFri, 01 Dec 2017 02:31:27 -0600https://ask.sagemath.org/question/39866/Sage and Anaconda collide when running Jupyterhttps://ask.sagemath.org/question/39868/sage-and-anaconda-collide-when-running-jupyter/I think Sage is interfering with anaconda. The problem is that I can't run Jupyter notebook from the anaconda GUI. The reason I want to do so is that I need modules (like pandas) that I have in anaconda, and I can't install on Sage.
I saw that to uninstall sage (I'm on a Mac) I just need to put it in the trash. But I tried to do so, and I still cannot run Jupyter from anaconda.
What can I do?roi.holtzmanFri, 01 Dec 2017 02:32:56 -0600https://ask.sagemath.org/question/39868/How do I solve this installation problem?https://ask.sagemath.org/question/35132/how-do-i-solve-this-installation-problem/ Hi, I'm trying to get Sage installed on my Mac, which is running the OS X El Capitan V10.11.6 , I've downloaded the .dmg file named sage-7.3-OSX_10.11.6-x86_64.dmg and extracted its contents to /Applications, opened this folder named SageMath and there I opened the sage file in the terminal as it was written on the README file.
I keep getting this error:
RecursionError: maximum recursion depth exceeded during compilation
(Some text about sage)
ERROR : The Sage installation tree has moved
from /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
to /Applications/SageMath
(More text)
I've searched around a bit, and found out it might have something to do with having anaconda installed, which I have, but from there I really can't progress much, as I am fairly new to UNIX systems.
I really appreciate any help you guys can give me!JAlxPWed, 12 Oct 2016 09:38:30 -0500https://ask.sagemath.org/question/35132/