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.

On Apr 28, 2017 2:47 AM, "orodbhen" <[email protected]> wrote:

> 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>
>
>
>
>
> On Wednesday, February 15, 2017 at 9:23:25 AM UTC-5, Alexander Mordvintsev
> wrote:
>>
>> Hi, everybody!
>>
>>
>> I've made a notebook
>> <https://nbviewer.jupyter.org/github/znah/mathbox/blob/jupyter/examples/notebooks/mathbox.ipynb?flush_cache=true>
>>  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 <https://github.com/unconed/mathbox> is an amazing
>> visualization library created by Steven Wittens <http://acko.net/>. 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.
>>
>>
>> --
> 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
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/0a271ac1-32ec-40da-a322-8cade4e46eb5%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/0a271ac1-32ec-40da-a322-8cade4e46eb5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CABdGnr_2_DC4Biutc2B1PETWmkoQ43YCZNw7EBeQz%3DPM0p01jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to