Yet another ipython + d3.js example: motion chart

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.

hacking, programming

8 thoughts on “Yet another ipython + d3.js example: motion chart

  1. I take it it wouldn’t work with your current ipython code, requires this particular commit, right?

  2. 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

  3. 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. 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!

  5. 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. I am working on a new version for v.0.13 ipython. I hope I can release it soon.

Leave a Comment

Your email address will not be published. Required fields are marked *


× 7 = fifty six

WP-SpamFree by Pole Position Marketing