ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 15 Sep 2014 07:52:26 -0500How can I plot matrices from Database into different sage cells?http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/ How can I plot multiple matrices from a sqlite Database into different sage cells?
My first intention was iterate over the SQL result set with python in sage and plot every result into a different sage cell.
But I do not know how I could plot them into different sage cells?
Why I would do that? Thats simple I have between two and over 20 Matrices and every matrix has the dimension of 91x365!Mon, 08 Sep 2014 12:10:24 -0500http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/Answer by kcrisman for <p>How can I plot multiple matrices from a sqlite Database into different sage cells?</p>
<p>My first intention was iterate over the SQL result set with python in sage and plot every result into a different sage cell.
But I do not know how I could plot them into different sage cells?</p>
<p>Why I would do that? Thats simple I have between two and over 20 Matrices and every matrix has the dimension of 91x365!</p>
http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/?answer=24059#post-id-24059I suppose one approach would be to use a script to write a web page which had a separate [Sage cell embedding](http://sagecell.sagemath.org/static/about.html?v=15adefe8b7e89fcf49eda7af5303abd4#embedding) for each of your matrices. You could just loop through making a lot of divs with the Sage cell and input your different matrix for each one. I don't know how much work that would be, it depends on your familiarity with those tools, naturally.Mon, 08 Sep 2014 12:54:13 -0500http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/?answer=24059#post-id-24059Comment by kcrisman for <p>I suppose one approach would be to use a script to write a web page which had a separate <a href="http://sagecell.sagemath.org/static/about.html?v=15adefe8b7e89fcf49eda7af5303abd4#embedding">Sage cell embedding</a> for each of your matrices. You could just loop through making a lot of divs with the Sage cell and input your different matrix for each one. I don't know how much work that would be, it depends on your familiarity with those tools, naturally.</p>
http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/?comment=24130#post-id-24130Ah, it wasn't clear you meant in the notebook. To do that programmatically you would probably have to have your loop modify worksheet.html in the notebook directly (I don't know how permissions would work with that, but it's worth trying). This is a little hard to find - look in .sage/sage_notebook.sagenb/home/admin and then the worksheet number (assuming you are running on your local computer and your user is admin, the default).Mon, 15 Sep 2014 07:52:26 -0500http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/?comment=24130#post-id-24130Comment by balduin for <p>I suppose one approach would be to use a script to write a web page which had a separate <a href="http://sagecell.sagemath.org/static/about.html?v=15adefe8b7e89fcf49eda7af5303abd4#embedding">Sage cell embedding</a> for each of your matrices. You could just loop through making a lot of divs with the Sage cell and input your different matrix for each one. I don't know how much work that would be, it depends on your familiarity with those tools, naturally.</p>
http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/?comment=24102#post-id-24102The looping is exactly what I want, but is there no possibility to make a new cell directly in the sage notebook?Fri, 12 Sep 2014 07:43:36 -0500http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/?comment=24102#post-id-24102