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.Mon, 02 Nov 2015 19:19:39 +0100Bug with raw literals?https://ask.sagemath.org/question/30409/bug-with-raw-literals/On cloud.sagemath, the following is interpreted as an empty string
<pre><code>r"""\
"""
</pre></code>
According to the python docs, Section 2.4.1 of the language specification::
"Note also that a single backslash followed by a newline is interpreted as those two characters as part of the literal, not as a line continuation."
Is this a bug? Or am I missing something?jediknight219Mon, 02 Nov 2015 19:19:39 +0100https://ask.sagemath.org/question/30409/inserting expression into integral with latex and pythonsage1https://ask.sagemath.org/question/29712/inserting-expression-into-integral-with-latex-and-pythonsage1/ I am trying to write some code where the user enters in a expression into a sage interactive and then my programs display the integral in latex. For example the user might enter in x^2 or sin(x) as bounds in my program. However,neither of these expressions works. when I use sin(x) as bound the s shows up as a bound but the in(X) shows up in the expression being integrated. when I put x^2 as a bound the integral does not show up and I get the message "Double Exponents use braces to clarify".
s = "$\int_{2}^{3} \int_{4}^{5} {0} \,dxdy = {1} $"
p = s.format(function, result,lower_x_bound,upper_x_bound,lower_y_bound,upper_y_bound)
html("%s" %p)
collabmathSat, 03 Oct 2015 20:37:31 +0200https://ask.sagemath.org/question/29712/Sage and python subprocesshttps://ask.sagemath.org/question/29499/sage-and-python-subprocess/ Just installed sage-6.8
From python program I run the following command:
res = check_output(["/opt/mathenv/sage-6.8/sage","/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage","x-5", "x",'-oo', '1', 'oo', '1', '14'])
But this piece of code gives me the following error:
CalledProcessError: Command '['/opt/mathenv/sage-6.8/sage', '/opt/mathenv/mathsite/mathsite/scripts/eq_solver.sage', 'x-5', 'x', '-oo', '1', 'oo', '1', '14']' returned non-zero exit status 1
It works perfectly if I enter the command directly in shell, so there are no errors with the script.
I've managed to get the error:
Setting permissions of DOT_SAGE directory so only you can read and write it.
os.chmod(DOT_SAGE, _desired_mode)\nOSError: [Errno 1]
Operation not permitted: \'/var/www/.sage/'
How can I fix it?proySat, 19 Sep 2015 17:11:30 +0200https://ask.sagemath.org/question/29499/using python in sage cloudhttps://ask.sagemath.org/question/26276/using-python-in-sage-cloud/ http://ask.sagemath.org/question/8313/lovasz-number/
I can run the lovasz number program (as given in above link) on sage application installed on my computer by selecting python from drop-down menu.
However, I am not able to run the same program on sagemath cloud.mathcubeSat, 21 Mar 2015 11:28:19 +0100https://ask.sagemath.org/question/26276/access dropbox files from cloud.sagemath.com?https://ask.sagemath.org/question/24013/access-dropbox-files-from-cloudsagemathcom/I'd like to read files stored on Dropbox using Python SDK API, as explained here: https://www.dropbox.com/developers/datastore/sdks/python
and use it to read images from Dropbox and process those using IPython notebook, e.g. like this one: http://nbviewer.ipython.org/github/yoavram/ipython-notebooks/blob/master/dropbox%20test.ipynb Alex L.Sun, 31 Aug 2014 10:49:56 +0200https://ask.sagemath.org/question/24013/