Ask Your Question
0

Using javascript towards regular Sage cluster

asked 2011-10-28 10:14:50 +0100

staffan gravatar image

ive been thinking how we could get more interactivity; and I actually got processing.js to work inside Sage. Scroll down and move the mouse around in the gray box (pun intended) to see what happens.

So can I get Sage to communicate with external javascrip libraries and how is it done for jquery, jsMath in Sage?

edit retag flag offensive close merge delete

Comments

very cool!

benjaminfjones gravatar imagebenjaminfjones ( 2011-10-29 18:04:45 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-10-28 10:53:09 +0100

Jason Grout gravatar image

See also http://sage.cs.drake.edu/home/pub/81/, where I use jsxgraph to experiment with tangent lines. I do the same as you---write out the javascript explicitly. We don't have a coherent way to interact with javascript right now beyond just explicitly writing out the javascript.

edit flag offensive delete link more

Comments

Thx a lot Jason, I'll have a look at that, looks nifty ! So would it be feasible to layer with Sage graphics?

staffan gravatar imagestaffan ( 2011-10-28 16:34:40 +0100 )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

Stats

Asked: 2011-10-28 10:14:50 +0100

Seen: 373 times

Last updated: Oct 28 '11