mikedewar/D3py — pull request #19 by alaiacano (2012-01-22 00:17:22+00:00)
Title: Some brief updates

I made a few changes, which are:

1) Taking the default template from static/d3py_template.html could be tricky and relies on paths. I'm not sure if you could just move static it into the d3py folder, but I just made a templates.py file that includes a string with the HTML template code.

2) If you create multiple plots, it correctly increases the port from 8000 to 8001, etc but doesn't modify the HTML, which is still looking for its data, js, css, etc on port 8000. I had to switch the code to serve the page first (and therefore update the port), and then replace {{ port }} with 8001 and write the html file.

3) Updated the scatter and line examples to the new syntax.

4) I accidentally sent this request to master instead of V2. I'm not sure how to change that. Should we just move v2 into master?