I gave a lightening talk in a recent Bay Area Python meet-up. I went over some of my recent hacks on combining ipython notebook and d3.js. What I wanted to show was how to mix python code and javascript code to create a dynamic programming/data analysis notebook. I created yet another example to demonstrate the great potential on combining the powerful tools.
If you are interested, you can try the this ipython notebook. You will need to download the development branch of the ipython v 0.13 to see the notebook. The notebook itself includes some of the explanation on how to run it and how it is done. I did not spend too much polishing the code and the motion chart, but it got the basic ingredients. If you want to peek it, here is a short screen recoding to show it looks like.
#1 by Simon on March 2, 2012 - 2:43 pm
Quote
That is awesome! Tried something similar lately. Keep on hacking !
Best
Sim
#2 by Dmtr on June 22, 2012 - 12:13 am
Quote
I take it it wouldn’t work with your current ipython code, requires this particular commit, right?
#3 by Jason Chin on June 22, 2012 - 5:48 am
Quote
Hi, Dmtr:
Thanks for trying it out. Yes, I was indeed working using a particular branch. The default ipython code lacked some construct to make it work then, so I had to modify some small stuff to make it work. The IPython team are really busy now to put out v. 0.13. I can barely keep up. Anyway, once the Ipython team release their official v.0.13, I will come back to hack a version to work with the v. 0.13.
-J
#4 by Jason Chin on June 22, 2012 - 5:50 am
Quote
Hi, Dmtr:
Thanks for trying it out. Yes, I was indeed working using a particular branch. The default ipython code lacked some construct to make it work then, so I had to modify some small stuff to make it work. The IPython team are really busy now to put out v. 0.13. I can barely keep up. Anyway, once the Ipython team release their official v.0.13, I will come back to hack a version to work with the v. 0.13.
-J
#5 by Dmtr on June 23, 2012 - 12:02 am
Quote
Uh, can you check if you haven’t left out vismonkeypatch.js and viscell.js? Trying to make the thing run and can’t find these anywhere…. Thanks!
#6 by Dmtr on July 9, 2012 - 3:12 pm
Quote
Uh, can you check if you haven’t left out vismonkeypatch.js and viscell.js? Trying to make the thing run and can’t find these anywhere…. Thanks!
#7 by Jason Chin on July 9, 2012 - 3:17 pm
Quote
I am working on a new version for v.0.13 ipython. I hope I can release it soon.
#8 by Jason Chin on July 19, 2012 - 10:03 pm
Quote
Hi, Dmtr:
Please see my most recent update on GitHub for IPython 0.13 at https://github.com/cschin/IPython-Notebook—d3.js-mashup
–J