Jupyter meets MathBox

342 views
Skip to first unread message

Alexander Mordvintsev

unread,
Feb 15, 2017, 9:23:25 AM2/15/17
to Project Jupyter

Hi, everybody!


I've made a notebook that shows how one can integrate MathBox plots into Jupyter and feed them data from Python backend. WebGL supporting browser and a decent GPU required.


MathBox2 is an amazing visualization library created by Steven Wittens. This is a very promising project, containing some really interesting ideas. 

Unfortunately It's not very mature and haven't been updated for a year already. I really don't want it to be abandoned, so I decided to make a few samples to show that it can be useful as a visualization tool for scientific python community.


nicolas.fr

unread,
Feb 15, 2017, 10:48:57 AM2/15/17
to Project Jupyter
Well done! MathBox2 is Impressive.

orodbhen

unread,
Apr 27, 2017, 8:47:00 PM4/27/17
to Project Jupyter
Thanks for this. I've actually been thinking for awhile about creating a Python wrapper for MathBox. 

I've experimented a bit with VisPy, but found it be very complicated, and couldn't get it to work in Jupyter. 

I'm thinking it wouldn't be too difficult to create a Python wrapper that generates JavaScript files and displays them using IPython.display. I admit, though, that I don't know JavaScript very well, which is why it's taken me so long to get the project going. 

I imagine you already know this, but you can run MathBox files in Jupyter without having all the JavaScript in your notebook, with something like this:

%%HTML
<iframe width="100%" height="350" src="empty.html?inline=true"></iframe>


Alexander Mordvintsev

unread,
Apr 29, 2017, 3:29:27 PM4/29/17
to jup...@googlegroups.com
I was also thinking about making a wrapper, until I realized that I can do my visualizations with JS right in ipython. See the section "feeding data from python". You can do your data analysis in Python, pass it to the browser, and render with MathBox without ever leaving ipython. 
The required subset of js isn't that hard to learn. MathBox required some effort to understand though.

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/BciW3Dcx_Iw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/0a271ac1-32ec-40da-a322-8cade4e46eb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lambda Lambda

unread,
Sep 19, 2019, 10:40:24 PM9/19/19
to Project Jupyter

I'm not one for necroposting, but this is pretty cool man. Thank you!
I'll make sure to post whatever use I find for this.
Reply all
Reply to author
Forward
0 new messages