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.Fri, 08 Feb 2019 13:36:30 -0600No output when documentation say it should behttp://ask.sagemath.org/question/45375/no-output-when-documentation-say-it-should-be/Hi all,
Consider http://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/affine_connection.html
The very last command of this web page is
sage: for i in M.irange():
nab.torsion_form(i, e) == ef[i].exterior_derivative() + \
sum(nab.connection_form(i,j,e).wedge(ef[j]) for j in M.irange())
The output of this command should be: True, True, True, but I get no output at all.
In order to duplicate you should include also the previous commands beginning from the `torsion_form` definition, over all 3 cells.
DanieldanielvolinskiFri, 08 Feb 2019 13:36:30 -0600http://ask.sagemath.org/question/45375/Running Sagemath 8.2 natively in Windows, how to change the Jupyter default directory?http://ask.sagemath.org/question/42445/running-sagemath-82-natively-in-windows-how-to-change-the-jupyter-default-directory/ With SageMath 8.2 running natively under Windows 10, the Jupyter dashboard opens by default in the directory `C:\Users\<me>`, so I then have to navigate to the desired directory that contains my Jupyter notebook .ipynb files.
***How can I cause Jupyter to open directly in the desired directory?***
The relevant Windows shortcut has the following Target Property:
`"C:\Program Files\SageMath 8.2\runtime\bin\mintty.exe" -t 'SageMath 8.2 Notebook Server' -i sagemath.ico /bin/bash --login -c '/opt/sagemath-8.2/sage --notebook jupyter'`
Can the `sage --notebook jupyter` portion be adjusted somehow to specify the desired directory?res0001Sat, 26 May 2018 21:59:30 -0500http://ask.sagemath.org/question/42445/libSingular issue windowshttp://ask.sagemath.org/question/43452/libsingular-issue-windows/ hello, when i try to run sage i have got following response:
sage
Traceback (most recent call last):
File "/opt/sagemath-8.3/src/bin/sage-ipython", line 9, in <module>
from sage.misc.banner import banner
File "/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/misc/banner.py", line 16, in <module>
from sage.env import (SAGE_VERSION, SAGE_DATE, SAGE_VERSION_BANNER,
File "/opt/sagemath-8.3/local/lib/python2.7/site-packages/sage/env.py", line 186, in <module>
"libSingular not found--a working Singular install in $SAGE_LOCAL "
RuntimeError: libSingular not found--a working Singular install in $SAGE_LOCAL is required for Sage to work
Maybe I am wrong but i think it is caused by environment variables. Is there any easy way to fix it? I didn't get any error or warning during installation.
Thanks for any reply!
alexx600Thu, 23 Aug 2018 03:33:02 -0500http://ask.sagemath.org/question/43452/Installing 8.3http://ask.sagemath.org/question/43398/installing-83/I'm using SageMath 8.2 on a Windows 10 Native with Jupyter Notebook.
I uninstalled SageMath 8.2 and installed SageMath 8.3. in a different folder.
There is still a lot of garbage left in the SageMath 8.2 folder, can I delete it?
Daniel
danielvolinskiFri, 17 Aug 2018 06:39:08 -0500http://ask.sagemath.org/question/43398/When will a Windows cygwin version be available/stablehttp://ask.sagemath.org/question/8312/when-will-a-windows-cygwin-version-be-availablestable/I apologise if this question is not suitable for this site.
As the subject line suggests, I'm looking for any information on when people think a cygwin version of sage which can run on Windows in a reasonably stable way may be available. Any slightly-educated guesses would be much appreciated!!
I've been trying to find a CAS to call home for some time now (after trying Maxima, Octave, Sympy/Scipy in Pythonxy, Spacetime... you get the idea :) ). For my needs, SAGE is superior to all of these in many ways, but the lack of a native port is a significant hurdle, and I've been tossing up buying a student version of Mathematica, which of course I wouldn't want to do if a SAGE port of sorts is around the corner.
Thanks!
Tom26Fri, 09 Sep 2011 01:09:29 -0500http://ask.sagemath.org/question/8312/Unable to download to PDFhttp://ask.sagemath.org/question/43049/unable-to-download-to-pdf/I'm using SageMath 8.2 on a Windows 10 Native with Jupyter Notebook.
When trying to download to PDF a Jupyter Notebook, I get the following message:
500 : Internal Server Error
nbconvert failed: PDF creating failed, captured latex output:
This is XeTeX, Version 3.14159265-2.6-0.99998 (MiKTeX 2.9.6500 64-bit)
entering extended mode
! I can't find file `/home/danie_000/SageManifolds/test/notebook.tex'.
<*> ...e/danie_000/SageManifolds/test/notebook.tex
Please type another input file name:
! Emergency stop.
<*> ...e/danie_000/SageManifolds/test/notebook.tex
No pages of output.
Transcript written on texput.log.
It is looking for some file in `/home/danie_000` but I don't use that default directory to place my Jupyter files.
I've changed my fstab like this:
D:\Users\danie_000\Sage /home/danie_000 ntfs binary,posix=1,acl 0 0
So I use `D:\Users\danie_000\Sage` instead, a different directory and drive. If SageMath allows changing the default root directory via changing the fstab file, it should also change any command that needs that information!
Daniel
danielvolinskiTue, 17 Jul 2018 11:45:03 -0500http://ask.sagemath.org/question/43049/How can I get R graphics to work with the Windows binary install of Sage 8.2?http://ask.sagemath.org/question/42343/how-can-i-get-r-graphics-to-work-with-the-windows-binary-install-of-sage-82/I installed Sage 8.2 with the Windows binary. In a Sage notebook, I executed the following commands:
data = [2, 3, 7, 8, 10, 11]
print median(data)
print r.quantile(data,.5)
r.boxplot(data)
This works in SageMathCell (lines 2 and 3 returning 15/2 and line 4 returning an object that includes a displayed boxplot); however, in Sage 8.2 Notebook on my Windows machine, line 4 returns [1] 2, and the command
r.png()
returns a Python traceback that includes "...\SageMath-8.2.exe is not a valid Win32 application."
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-3-5d43610b342f> in <module>()
----> 1 r.png()
/opt/sagemath-8.1/local/lib/python2.7/site-packages/sage/interfaces/r.py in png(self, *args, **kwds)
445 t = r.eval('capabilities("aqua")')
446 if "TRUE" not in s+t:
--> 447 raise RuntimeError("R was not compiled with PNG support")
448
449 from sage.server.support import EMBEDDED_MODE
RuntimeError: R was not compiled with PNG support
When I searched on various words, I kept coming upon information from about 6-8 years ago dealing with different headers in the compile phase and the presence or absence of an X11 server. Do I really need to install an X11 server, download the SageMath source, make a variety of compiler choices, and compile myself?dhousmanMon, 14 May 2018 14:54:07 -0500http://ask.sagemath.org/question/42343/Using sagemath on windows 10 : impossible to attach filehttp://ask.sagemath.org/question/42870/using-sagemath-on-windows-10-impossible-to-attach-file/Hi! I've installed sagemath on windows 10 and I'm going crazy. The problem it seems to be that all the program is runing in some kind of temporal directory . I leave here some feedback from my console:
sage: load_attach_path()
['.']
If I change the path,
sage: load_attach_path('C:\Users\Javier\Desktop\current\height1')
sage: load_attach_path()
['.', 'C:\\Users\\Javier\\Desktop\\current\\height1']
So we can confirm the new path was added. Inside the folder height1 I have a file "'heigth1.sage". Let's try to attach it:
sage: attach("height1.sage")
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-4-cb4dd36405f2> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("aGVpZ2h0MS5zYWdl"),globals(),True)
/opt/sagemath-8.2/local/lib/python2.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
252 # See Trac 11812.
253 if attach:
--> 254 add_attached_file(fpath)
255 with open(preparse_file_named(fpath)) as f:
256 code = compile(f.read(), preparse_file_named(fpath), 'exec')
/opt/sagemath-8.2/local/lib/python2.7/site-packages/sage/repl/attach.py in add_attached_file(filename)
376 sage.repl.inputhook.install()
377 fpath = os.path.abspath(filename)
--> 378 attached[fpath] = os.path.getmtime(fpath)
379
380
/opt/sagemath-8.2/local/lib/python2.7/genericpath.py in getmtime(filename)
60 def getmtime(filename):
61 """Return the last modification time of a file, reported by os.stat()."""
---> 62 return os.stat(filename).st_mtime
63
64
OSError: [Errno 2] No such file or directory: '/home/Javier/C:\\Users\\Javier\\Desktop\\current\\height1/height1.sage'
----------
Recall the Error **No such file or directory: '/home/Javier/C:\\Users\\Javier\\Desktop\\current\\height1/height1.sage'**. What ?? Please, help me ! I will appreciate your feedback very much!JavidlgMon, 09 Jul 2018 10:26:08 -0500http://ask.sagemath.org/question/42870/plot3d fail, win32 error 1114http://ask.sagemath.org/question/41062/plot3d-fail-win32-error-1114/ Hi, This is the first time that I try to use plot3d function , It showed information as below:
Please give me some advice to fix the problem
sage: x, y = var('x,y')
sage: plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
0 [main] python2.7 1456 child_info_fork::abort: unable to map C:\Program Files\SageMath 8.1\runtime\opt\sagemath-8.1\local\lib\python2.7\site-packages\psutil\_psutil_cygwin.dll, Win32 error 1114
Graphics3d ObjectworaphonSun, 11 Feb 2018 04:18:09 -0600http://ask.sagemath.org/question/41062/Add on other packageshttp://ask.sagemath.org/question/42129/add-on-other-packages/ I wanted to be able to use the python "uncertainties" package in the sage notebooks. I have sage installed on windows. The sage terminal said pip and easy_install did not have necessary permissions. In fact, the sage terminal itself did not have write access to the packages folder.
How do I install packages like 'uncertainties'?ionsmeSun, 22 Apr 2018 21:12:35 -0500http://ask.sagemath.org/question/42129/sagemath-8.1 windowshttp://ask.sagemath.org/question/42120/sagemath-81-windows/ In sagemath-8.1 windows native installation . Help files are poorly formatted, particularly in the Reference Documentation. They appear to not be accessing a .css file.
Do I have a faulty installation file, and if so how can I get a copy a non-faulty one?NormekSat, 21 Apr 2018 22:50:45 -0500http://ask.sagemath.org/question/42120/how to sage a .sage filehttp://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/ I am having sage installed on a windows 10. Sage file example.sage.sage which is generated by sagetex is situated in K:\sageexample folder. How to run sage on this file. All references are full of jargonism and don't explain anything at all or give examples.
I run sage shell and prompt:
run ('K:sageexample\example.sage.sage') but no result. I run load command load ('K:sageexample\example.sage.sage') no example.
I don't want to install linux for one program.
How to "sage" a file from notebook interface?kate_l196Thu, 15 Mar 2018 12:27:18 -0500http://ask.sagemath.org/question/41568/sagemath windows 8.1 launching jupyter from another directory or drivehttp://ask.sagemath.org/question/41348/sagemath-windows-81-launching-jupyter-from-another-directory-or-drive/ After installing sagemath 8.1 for windows, I try to launch jupyter from drive E:\ where the data are, instead of C:\ which is a SSD. It is not possible once in the browser to switch to another disk as reported in various places on internet.
What is the best work around?c05772Thu, 01 Mar 2018 18:17:09 -0600http://ask.sagemath.org/question/41348/Sagemath 8.1 windows: Impossible to export jmol figure from Jupyter while it works with former notebook.http://ask.sagemath.org/question/41347/sagemath-81-windows-impossible-to-export-jmol-figure-from-jupyter-while-it-works-with-former-notebook/After installing sagemath 8.1 for windows I try to save as a jmol file a 3D figure and as shown on the figure that I cannot upload :-( [I do not have the 60 points required, a figure is worth a thousand words, too bad!].
So I load 2 shells: one running "jupyter notebook", the other running "notebook()" in both shell I try the MWE:
G=sphere((0,0,0),1)
show(G,figsize=(5,5),title="Sample Figure",aspect_ratio=1);
On both, I right click on the jmol figure,then on File, in both cases 'File->' becomes red but only in the old notebook() I get the sub menu (Load Save Export) and the subsubmenus. With jupyter, I get nothing and cannot export.
Worse even in a console, I cannot get the jmol figure executed, neither exported.
I jumped to 61 points overnight, so here is the picture:![image description](/upfiles/15200099365123058.png)c05772Thu, 01 Mar 2018 18:02:30 -0600http://ask.sagemath.org/question/41347/Problem : ImageMagick and animatehttp://ask.sagemath.org/question/41082/problem-imagemagick-and-animate/Hi,
I have Sage 8.1 and ImageMagick (installed from 7.0.7-22-Q16-x64-dll.exe) installed on W10.
When I execute in Sage Notebook :
sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in sxrange(0,1,.2)]
a = animate(sines)
a.show()
I get this :
convert.exe: unable to open image
'/dot_sage/temp/my_desktop/17724/tmp_bfv0BC.gif': No such file or
directory @ error/blob.c/OpenBlob/3335.
Animation with 5 frames
And I have no animation.
How can I solve this ?
Thank youkrokoMon, 12 Feb 2018 16:44:56 -0600http://ask.sagemath.org/question/41082/Sagemath on Windows 10?http://ask.sagemath.org/question/32930/sagemath-on-windows-10/ Hello all. Today, I could come up with the following news(you can google "microsoft-canonical-bring-ubuntu-linux-on-windows-10". Sorry for not writing the link, since my karma is low...)
As far as I understand, I guess it means that one can install sagemath in windows 10, directly - not using virtualbox.
In fact, in earlier versions of MS windows, like windows 7, it seemed that one should run virtualbox to run sagemath
on one's computer.
Maybe using cloud computing in sagemath homepage would be better, but I don't prefer that.
When only considering using sagemath, it would be more convenient to use Linux.
So, if the news is true, then I can directly download and install sagemath in windows 10.
Is my understanding correct?
Or is there anybody who already tried this?prosolverThu, 31 Mar 2016 10:03:59 -0500http://ask.sagemath.org/question/32930/'launched jmol viewer for Graphics3d Object' failshttp://ask.sagemath.org/question/39269/launched-jmol-viewer-for-graphics3d-object-fails/Testing Sagemath for windows 8.0 with jmol, I get the message at the console but nothing happens. However the jmol viewer (launched with jmol.bat) found in C:\Program Files\SageMath 8.0\runtime\opt\sagemath-8.0\local\share\jmol is working correctly.
> sage: G=sphere((0,0,0),1)
> sage: show(G,figsize=(5,5),title="Sample Figure",aspect_ratio=1);
> Launched jmol viewer for Graphics3d Object
> sage:
It looks like a path problem but I don't see how to modify it.c05772Tue, 24 Oct 2017 17:03:23 -0500http://ask.sagemath.org/question/39269/Make PyCharm recognise the Sage python interpreterhttp://ask.sagemath.org/question/39742/make-pycharm-recognise-the-sage-python-interpreter/How do I configure PyCharm so I can edit and run Sage scripts?
When I tried selecting Sage's python in `C:\Program Files\SageMath 8.0\runtime\opt\sagemath-8.0\local\bin` PyCharm said 'cannot setup SDK'.
I am using SageMath 8 on Windows.
[Edit] Rephrased the question because it is partly solved (and is pretty difficult), asking new question for the remainder so it is more clear.PHPiratesThu, 23 Nov 2017 08:08:17 -0600http://ask.sagemath.org/question/39742/SageMath 8.0 using Windows installerhttp://ask.sagemath.org/question/40131/sagemath-80-using-windows-installer/I have installed SageMath 8.0 on Windows 10 as the following instruction.
wiki.sagemath.org/SageWindows
Everything ᅟ seemed to work well first, but I got an error message as follows.
sage: 1+1
2
sage: plot(sin(x))
/opt/sagemath-8.0/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.py:590: RichReprWarning: Exception in _rich_repr_ while displaying object: 'ascii' codec can't decode byte 0xea in position 6: ordinal not in range(128)
RichReprWarning, Graphics object consisting of 1 graphics primitive
sage:
Does anybody know a solution for this problem?Seonhwa KimTue, 12 Dec 2017 23:34:04 -0600http://ask.sagemath.org/question/40131/using Jupiter notebooks .ipynb created on Windows (Oracle VM virtual box) on sage, linuxhttp://ask.sagemath.org/question/39773/using-jupiter-notebooks-ipynb-created-on-windows-oracle-vm-virtual-box-on-sage-linux/ Hi
1) I use Jupiter notebooks .ipynb created on Windows (Oracle VM virtual box) at home, and would like to upload and use them
on our linux sage installation, in our University
It seems this is impossible (upload of .ipynb is refused by linux sage)
2) As a substitute, I noticed on a notebook .sage created by someone else that it is at least pure text, and hence can be copied-pasted on a new file in the linux machine.
Is it possible to convert my .ipynb notebooks to .sage notebooks? This would allow using them both as notebooks and as a source of copypaste when upload is refused.
In fact, can .sage files be created on Windows (Oracle VM virtual box)?
Thanks, FlorinflorinFri, 24 Nov 2017 14:08:25 -0600http://ask.sagemath.org/question/39773/Version 7.5.1 for Windowshttp://ask.sagemath.org/question/36964/version-751-for-windows/ I have been looking forward to this version ever since it was announced. When will it be available? The latest version available is 7.4
Thank yourobertjb20Thu, 16 Mar 2017 08:01:40 -0500http://ask.sagemath.org/question/36964/little doc to install Sage Math On W10http://ask.sagemath.org/question/37644/little-doc-to-install-sage-math-on-w10/Hi
i did a little doc to help install sage math on Windows 10.
[litle doc to install Sage Math On W10](https://docs.google.com/document/d/1JRCPjeiZvN1KboxuKeGI3_ZBIWtc5PHAfeHj-K92vhg/edit)
tell me if you think to something to improve itortolljSat, 20 May 2017 07:21:24 -0500http://ask.sagemath.org/question/37644/Sage for win 10 graphics brokenhttp://ask.sagemath.org/question/39207/sage-for-win-10-graphics-broken/I installed Sage 8 native winstall into windows 10, and all graphics plots just give me the broken graphics icon. It works with Sage for Ubuntu on the same windows so it's not my graphics system, IMHO.
Okay, the problem seems to be with Jupyter. If I start the shell from Windows instead, then Sage, then the notebook() for sagenb, the graphics work fine and are very fast. That starts a bash shell, though. Oddly, I have Ubuntu for Windows, ran Sage from that bash shell and it's still slower than the sagenb from the bash shell installed by the windows install. So I guess I'll just run that.cybervigilanteWed, 18 Oct 2017 22:03:02 -0500http://ask.sagemath.org/question/39207/where do I get the notebook user name and passwordhttp://ask.sagemath.org/question/39150/where-do-i-get-the-notebook-user-name-and-password/ I installed windows ubuntu, then sage, started notebook() and the notebook wants username and password. Where in the heck is that?cybervigilanteThu, 12 Oct 2017 20:30:24 -0500http://ask.sagemath.org/question/39150/run sage from windows 10 ubuntuhttp://ask.sagemath.org/question/39132/run-sage-from-windows-10-ubuntu/ I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.cybervigilanteWed, 11 Oct 2017 19:28:05 -0500http://ask.sagemath.org/question/39132/Import Text.txt file contents from a windows computer to sagecell.http://ask.sagemath.org/question/38185/import-texttxt-file-contents-from-a-windows-computer-to-sagecell/Hello,
The following code will work on my Linux computer if I use the "/usual path/" in Linux but I cannot get Sage to recognize
my Windows path. My code
with open('C:\Users\miram\OneDrive\Documents\Programming\Original.txt', 'r') as f:
L = f.readlines()
I have also tried the path
with open('C:\\Users\\miram\\OneDrive\\Documents\\Programming\\Original.txt', 'r') as f:
L = f.readlines()
I have also tried the path
with open('C:\\Text\\22.PE.Orig.List.txt', 'r') as f:
L = f.readlines()
and with one backslash.
I get the following error:
IOError: [Errno 2] No such file or directory: 'C:\\Text\\22.PE.Orig.List.txt'
What I want to do, as can be seen, is import a text file into SageMath so that I can work with the list created.
I am following: https://ask.sagemath.org/question/28765/turning-a-txt-file-into-a-list-in-sagemathpython/ and have followed the advice for my Linux machine and have not had a problem. I need to do it on my Windows computer, though.
I think my problem is that I am using a sagecell server. Is that true?happys5Wed, 05 Jul 2017 20:47:54 -0500http://ask.sagemath.org/question/38185/Sage-7.4.ova crashes my PC W10 64http://ask.sagemath.org/question/36891/sage-74ova-crashes-my-pc-w10-64/When I open the VM version sage-7.4.ova with VirtualBox Graphical User Interface
Version 5.1.16 r113841 (Qt5.6.2), this systematically crashes my PC W10 64.
Time of this report: 3/10/2017, 04:37:22
Machine name: TOSHIBAJPO
Machine Id: {5206BD36-3F1F-4BB4-8E3F-40F9D8FB476A}
Operating System: Windows 10 Famille 64-bit (10.0, Build 14393) (14393.rs1_release.161220-1747)
Language: French (Regional Setting: French)
System Manufacturer: TOSHIBA
System Model: SATELLITE C70-B
BIOS: 1.10
Processor: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 CPUs), ~2.2GHz
Memory: 8192MB RAM
Available OS Memory: 8108MB RAM
Page File: 3123MB used, 6263MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 12
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 144 DPI (150 percent)
DWM DPI Scaling: UnKnown
Miracast: Available, with HDCP
Microsoft Graphics Hybrid: SupportedortolljThu, 09 Mar 2017 21:42:15 -0600http://ask.sagemath.org/question/36891/Will there be a Sage 7.6 VM??http://ask.sagemath.org/question/37138/will-there-be-a-sage-76-vm/ Is there a reason why there are no VMs for Sage after version 7.4? I run Sage on Windows so I depend on virtual machines.AntonioThu, 30 Mar 2017 17:47:59 -0500http://ask.sagemath.org/question/37138/Where can I find a Windows binary for Sage 7.5 or 7.5.1?http://ask.sagemath.org/question/36601/where-can-i-find-a-windows-binary-for-sage-75-or-751/ I can only find 7.4.KaelMon, 13 Feb 2017 08:35:05 -0600http://ask.sagemath.org/question/36601/I have installed a Virtual VM and Sage on my Windows PC. How do I start an interactive Sage shell?http://ask.sagemath.org/question/29527/i-have-installed-a-virtual-vm-and-sage-on-my-windows-pc-how-do-i-start-an-interactive-sage-shell/I know I am supposed to type "Sage" somewhere, but where? dilettanteMon, 21 Sep 2015 21:09:17 -0500http://ask.sagemath.org/question/29527/