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.Wed, 30 Nov 2016 11:29:51 -0600Show Sage results in a webpage as string (not as Sagecell box)http://ask.sagemath.org/question/34443/show-sage-results-in-a-webpage-as-string-not-as-sagecell-box/I'm trying to print a result on my website from Sage. I know that Sagecell can display output in website by rectangle box. Could I print as a string in web?
For example, if I write 2016 in the input form on my website, is it possible to print the next prime as "string" in web by using Sage command? (The sage command: P=Primes(); print P.next(2016) )
How can I build the code?Byungyun JeonFri, 12 Aug 2016 02:17:28 -0500http://ask.sagemath.org/question/34443/Does there exist a GUI web-app that allows for edge contractions and vertex splits?http://ask.sagemath.org/question/35825/does-there-exist-a-gui-web-app-that-allows-for-edge-contractions-and-vertex-splits/I am interested in creating a web-app that allows for graph creation, edge contraction, vertex splits, and then exports to sage.
If anyone knows of something like this already developed please let me know, otherwise any suggestions on how to begin?
ThanksfieldofnodesWed, 30 Nov 2016 11:29:51 -0600http://ask.sagemath.org/question/35825/upload data file to notebookhttp://ask.sagemath.org/question/8639/upload-data-file-to-notebook/Hello!
I have a data file on my hard drive which I can open like:
open('/path/to/file')
in case of sage's server can access this file. But if the server is on the remote machine and there is no way to share a file between my machine and the server, can I somehow upload this file via web-interface to the sage notebook server and then open it and read it?EugeneTue, 17 Jan 2012 20:56:53 -0600http://ask.sagemath.org/question/8639/Excercises, randomly generated and automatically checkedhttp://ask.sagemath.org/question/9759/excercises-randomly-generated-and-automatically-checked/I've been authoring excercise questions for students using [Maple T.A.](http://www.maplesoft.com/products/mapleta/). These questions are randomly generated, and answers checked online, which gives immediate feedback to students. Students like this service, but I as an author was severely annoyed by the workflow, and thought that it should be possible to achieve something better using Sage.
**Is there any project underway which attempts to use Sage to generate questions and check answers in a web-based setup?** If so, how mature is it?
If you want an *example* question, I'd be particularly interested in a question asking students to find an orthogonal basis for a vector space spanned by a given set of vectors. As that basis isn't uniquely defined, a fixed answer won't work, so the provided answer has to be checked using custom code. As the dimension of that vector space might vary between randomizations, a fixed input form doesn't seem a good idea, so I'd prefer either some JavaScript tool to manually adjust the number of vectors in the HTML page, or some way to enter a set of vectors as a single expression. The latter is the approach I currently take with Maple T.A., but it requires students to not only worry about their computations but also about the syntax for entering the results. And it raises the question of how to restrict the set of possible inputs, as executing arbitrary user-entered Python code would be a road to disaster, unless some reasonable sandbox were available.MvGFri, 01 Feb 2013 03:40:23 -0600http://ask.sagemath.org/question/9759/Experience with web2py and sage integration?http://ask.sagemath.org/question/9420/experience-with-web2py-and-sage-integration/I'm going to experiment with web2py and sage. I think this could be a very powerful combination. Does anyone have experience with this? and do you know of any projects that use this combination?mfrellumSat, 13 Oct 2012 21:13:46 -0500http://ask.sagemath.org/question/9420/Create dynamically updatable progress barhttp://ask.sagemath.org/question/8245/create-dynamically-updatable-progress-bar/Hi!
Sometimes calculations takes a long time, and it'll be very useful to know the progress. A simple example:
from time import sleep
def slow_calculations():
for i in range(10):
sleep(0.5)
print 'Complete',(i+1)*10,'%'
print 'Done'
Such indication of process was my first solution. Is is possible somehow to draw a progress bar and update it's value during the calculations? Something like that:
def slow_calculations(bar):
for i in range(10):
sleep(0.5)
bar.value = (i+1)*10
progressBar= ProgressBar()
progressBar.show()
slow_calculations(progressBar)EugeneFri, 29 Jul 2011 00:25:28 -0500http://ask.sagemath.org/question/8245/Calling Sage from a web pagehttp://ask.sagemath.org/question/8029/calling-sage-from-a-web-page/Hello, I'm fairly new on the subject.
Can you tell me if you can find a tutorial on how to implement sage in a web page?
Should I create a page that takes some input from the visitor, does some calculations on a database with sage and, in the end, plot the output on the page.
something similar to the notebook but simplier and implementable in a web page.
I thank you in advance!IsraafiylSun, 27 Mar 2011 02:11:30 -0500http://ask.sagemath.org/question/8029/publish 3d plots to web?http://ask.sagemath.org/question/7772/publish-3d-plots-to-web/I'd like to post the output of a 3d plot to the web. For example, after plotting a surface, a Jmol output is produced, which my browser renders in the notebook. I'd like this Jmol plot to be output as a file that could be uploaded to a server and embedded in a webpage (where it can still be manipulated with the mouse, etc.). Is there a way to do this?Kate StangeTue, 23 Nov 2010 06:40:54 -0600http://ask.sagemath.org/question/7772/