refresh with three.js

asked 3 years ago

rrogers gravatar image

In some analysis/education projects I would like to compare different situations; like the Kerr GR diagrams which have lots of moving parts (sorry for the pun).
Which is to say: generate plot(s) ⇾ save as HTML (s)(or some such) ⇾ open the file(s) with a browser.
Then change plot parameters and resave and have the open pictures update automatically. Actually, I presume that the three.js would have them monitoring the HTML file as in:
Stack overflow here:
although a triggered update would be fine, but that answer seems simple enough to put in the three.js (template?) myself.
I realize that I could do the update manually in the browser toolbar; but being distractible and forgetful, it would be better to have it automatic. Although I am open to other suggestions. I really enjoy moving around the parameter space as well as objects, visually oriented :); and I think sagemath does wonderful plots.

Preview: (hide)

Comments

Wouldn't this be the ideal use case of interacts in a Jupyter notebook (see examples). ?

If you need a Web page, some input/processing/output loop is necessary. Sagecell may come in handy...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 3 years ago )

I didn't see how interacts could do it; and Sagecell looks like it would, but that seemed to have some overhead programming, That I was trying to avoid. It goes out through localhost as I recall, and I don't know how portable it is across OS's; I personally use Linux but would like the technique to be portable and easy. I will look into Sagecell more closely, though.

rrogers gravatar imagerrogers ( 3 years ago )