[IPython-dev] WebGL example in IPython notebook based on three.js

David Powell DavidAnthonyPowell+python at gmail.com
Mon Jan 19 19:47:36 EST 2015

Hello Soumith,
My code is GPL3, but if you tell me which files you want to use, I will
release them under a BSD license to be compatible with itorch.
 This is fantastic! I was going to do some of this work myself over the
next month for iTorch (https://github.com/facebook/iTorch), and you saved
me some trouble.
I will take a look at your code over the next couple of days, I am
wondering if you would have any issues if I directly adapted your
javascript side of things in iTorch rather than rewriting from scratch.

  From: David Powell <DavidAnthonyPowell+python at gmail.com>
Reply-To: IPython developers list <ipython-dev at scipy.org>
Date: Sunday, January 18, 2015 at 10:47 PM
To: IPython developers list <ipython-dev at scipy.org>
Subject: [IPython-dev] WebGL example in IPython notebook based on three.js

  Hello all,

 I recently managed to get 3D vector plots working in the IPython notebook,
by statically producing three.js output. I thought I'd share it here in
case this example is useful for anyone else, or if anyone has any
suggestions as to how I could do things better.

 The advantage of the static approach is that the output survives the
nbconvert process, which you can see in this notebook here (which also
compares with a couple of other unsatisfactory ways of visualising 3D
vector plots).


 Another example can be seen at:


 If you are interested to see how this works, you can check out the python


 As well as the javascript:


 and finally the HTML:


 By the way, I am aware of the efforts to make a proper three.js IPython
widget (https://github.com/jasongrout/pythreejs/), and will probably switch
over to this once it is stable, and when the output can survive ipython's
nbconvert process. Is this something we can expect for widgets in IPython


IPython-dev mailing list
IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150120/e96afd4a/attachment.html>

More information about the IPython-dev mailing list