ASKSAGE: Sage Q&A Forum  Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 13 Jan 2020 07:12:58 0600How can I get the Sage version 9 on ubuntu?http://ask.sagemath.org/question/49530/howcanigetthesageversion9onubuntu/ Hi,
I used 'sudo aptget install sagemath' in the ubuntu shell to get Sage. However, it installed version 8.1 of Sage.
I would like to install a version of Sage that has automatic syntax highlighting/coloring like version 9 has.
Anyone know how I can do this? I need to do it using the command line only (see below).

Some additional context:
I installed sage on ubuntu 18.04 on windows 10 using its Linux bash shell . I'm able to access the Sage running on Ubuntu (on Windows) by going to localhost:8080 on chrome (in Windows).eodMon, 13 Jan 2020 07:12:58 0600http://ask.sagemath.org/question/49530/Latest development version not on AUR Arch Linux repositoryhttp://ask.sagemath.org/question/43356/latestdevelopmentversionnotonaurarchlinuxrepository/I use Linux Manjaro, because its package manager allows one to install latest development of sagemath very easily by just clicking a button.
The package manager builds latest development sagematch from sources from AUR (ArchLinux User repository):
https://aur.archlinux.org/packages/sagemathgit/
And it used to be that AUR is updated at same time as a new version of sagemath shows up on this page
http://mirrorsusa.goparts.com/sage/sagemath/devel/index.html
But it has been more than one week and AUR is still showing older 8.3.rc3, while sagemath is now at sage8.4.beta0
Any one knows how this process works, and why this time the latest development version does not show on AUR?NasserMon, 13 Aug 2018 03:04:26 0500http://ask.sagemath.org/question/43356/Microsoft Internet Explorer Version 9 or abovehttp://ask.sagemath.org/question/43383/microsoftinternetexplorerversion9orabove/How can I use sage without Microsoft Internet Explorer Version 9 or above? Because this is the system requirement of sage.
I ask this question only for a friend, but I hope someone could give me some suggestions.
Thanks! :)pizzaWed, 15 Aug 2018 02:01:33 0500http://ask.sagemath.org/question/43383/Commands that changed expressionhttp://ask.sagemath.org/question/41258/commandsthatchangedexpression/Hello!
Following a recent question about the new expressions for "find_minimum/maximum_on_interval", I have a more general concern: are commands that changed name across versions documented and collected in some form? So that old documentation and books aren't rendered irremediably obsolete by Sage's evolution.isaia.ismaeleSun, 25 Feb 2018 07:35:22 0600http://ask.sagemath.org/question/41258/.subfields() not working in Sage 6.2; any workaround?http://ask.sagemath.org/question/33311/subfieldsnotworkinginsage62anyworkaround/ Running Sage 6.2, the .subfields() command is not working when applied to an octic number field. Is there any workaround?
(I'm using institutional resources, but they're having trouble updating the Sage version. Hence this question.)
The screenshot is linked below. (Awkward formatting because of the karma system; sorry!)
math.umd.edu/~bloom/sagescreenshot.png
samuelbloomTue, 03 May 2016 15:20:09 0500http://ask.sagemath.org/question/33311/Using Sage with TensorFlowhttp://ask.sagemath.org/question/32743/usingsagewithtensorflow/I've written something in TensorFlow that makes use of some nice group theory functions that work very easily in Sage (and seem prohibitively difficult to code from scratch). However, I can't get TensorFlow and Sage to work together. Each works on its own, but I think they rely on different Python versions and therefore won't run together. I think Sage uses Python 2.6 and TensorFlow 2.7.
Specifically, I can make a small Python script test.py that uses some Sage functions and run it using
> sage python test.py
and it runs with no problem. But trying to import the TensorFlow module in test.py throws an error saying the tensorflow module doesn't exist. Similarly, I get errors trying to import sage.all inside my .py script that uses TensorFlow. So I can neither add TensorFlow to Sage nor add Sage to Tensorflow.
I first encountered this problem in Sage 6.10 and upgrading to Sage 7.0 hasn't helped.
I'm not sure if this is relevant, but if I fire up normal Python (the kind TensorFlow uses), I get this:
> from sage.env import SAGE_LOCAL
> SAGE_LOCAL
which outputs `'$SAGE_ROOT/local'`.
However if I fire up Sage first I get this:
> sage
> SAGE_LOCAL
which outputs '`'/usr/lib/sagemath/local'`.
Any possible workaround?
Thanks!zqcmWed, 09 Mar 2016 06:04:12 0600http://ask.sagemath.org/question/32743/`sage upgrade` downgrades from 4.6 to 4.6.rc0http://ask.sagemath.org/question/7816/sageupgradedowngradesfrom46to46rc0/I tried to run `sage upgrade` from a builtfromsource installation of 4.6. Nothing seemed to happen, but now when I run `sage`, I get a warning telling me I'm running an unstable prerelease version, and the header says "Sage Version 4.6.rc0"! I checked `$SAGE_ROOT/devel/sage/sage/version.py`, and in that file the version is duly listed as 4.6. Any idea what's going on?
EDIT
The files at `$SAGE_ROOT/local/bin` were marked as parented to the 4.6.rc0 revision of the hg repository for some reason. Thus `$SAGE_ROOT/local/bin/sagebanner` had been replaced with the 4.6.rc0 banner. I had committed a revision to 4.6 before running `sage upgrade`, so this may have somehow been responsible. Still, I'd appreciate it if someone else could test this.kiniWed, 15 Dec 2010 12:09:55 0600http://ask.sagemath.org/question/7816/Version of software included in Sagehttp://ask.sagemath.org/question/23163/versionofsoftwareincludedinsage/I am working in Sage 6.3.beta4 (built from the tarball) under OS X 10.9.3.
sage: version()
'Sage Version 6.3.beta4, Release Date: 20140619'
To check what version of GAP, Maxima or R is included, the following works:
sage: gap.version()
'4.7.5'
sage: maxima.version()
'5.33.0'
sage: r.version()
((3, 0, 2), 'R version 3.0.2 (20130925)')
but surprisingly this does not give the version of PARI, but raises an attribute error:
sage: pari.version()
AttributeError: 'sage.libs.pari.pari_instance.PariInstance' object has no attribute '__version'
It turns out that the following works:
sage: pari('version')
[2, 5, 5]
but it would be nice to access the version number for PARI in the same way as for other components.
For Singular, the naive trial as above outputs information giving the version number, followed by a Singular error.
slelievreTue, 01 Jul 2014 23:28:32 0500http://ask.sagemath.org/question/23163/does ubuntu ppa update 32bit version ??http://ask.sagemath.org/question/10853/doesubuntuppaupdate32bitversion/ I have installed sage from ubuntu ppa into my 32bit ubuntu as described at http://www.sagemath.org/downloadlinux.html but it did not update since 5.8.
How regularly this repository is updated? Will 6.0 be there?
ADuC812Wed, 25 Dec 2013 23:23:14 0600http://ask.sagemath.org/question/10853/How do I install python modules, or use a different version of python? (with sage)http://ask.sagemath.org/question/8927/howdoiinstallpythonmodulesoruseadifferentversionofpythonwithsage/I have several versions of python, as well as the one included with sage. I want to use the svgwrite module in /Library/Frameworks/Python.framework/Versions/2.7/bin/python , but sage does not have it.
I want to run the following (combined with some output from sage)
import svgwrite
dwg = svgwrite.Drawing('test.svg', profile='tiny')
dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%')))
dwg.add(dwg.text('Test', insert=(0, 0.2), fill='red'))
dwg.save()
It runs fine with the calls
python drawT.sage
python2.7 drawT.sage
But when I try to call it directly or with a system call in sage I have problems.
sage: import sys
sage: os.system("python /path/drawT.sage")
Traceback (most recent call last):
File "/path/drawT.sage", line 1, in <module>
import svgwrite
ImportError: No module named svgwrite
256
sage: os.system("which python")
/Applications/sage/local/bin/python
0
Okay fine, sage's installation does not have the module. But now I try to force it to use the installation that does have it:
sage: os.system("which python2.7")
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
0
sage: os.system("python2.7 /path/drawT.sage")
Traceback (most recent call last):
File "/path/drawT.sage", line 1, in <module>
import svgwrite
ImportError: No module named svgwrite
256
How can I install svgwrite, or invoke a given python installation from sage?
alejandroericksonMon, 30 Apr 2012 16:21:41 0500http://ask.sagemath.org/question/8927/python 2.7http://ask.sagemath.org/question/8733/python27/is sage compatible with python 2.7.x or only 2.6.x?lolcatsWed, 22 Feb 2012 09:05:04 0600http://ask.sagemath.org/question/8733/