Ask Your Question
0

How can I plot matrices from Database into different sage cells?

asked 2014-09-08 19:10:24 +0200

balduin gravatar image

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-09-08 19:54:13 +0200

kcrisman gravatar image

I suppose one approach would be to use a script to write a web page which had a separate Sage cell 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.

edit flag offensive delete link more

Comments

The looping is exactly what I want, but is there no possibility to make a new cell directly in the sage notebook?

balduin gravatar imagebalduin ( 2014-09-12 14:43:36 +0200 )edit

Ah, 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).

kcrisman gravatar imagekcrisman ( 2014-09-15 14:52:26 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-09-08 19:10:24 +0200

Seen: 328 times

Last updated: Sep 08 '14