mikedewar / d3py

a plottling library for python, based on D3
1.42k stars 202 forks source link

Stream files to webserver instead of saving to disk #38

Closed mynameisfiber closed 11 years ago

mynameisfiber commented 12 years ago

As the title says... this should help with ipython compatibility and would vastly simplify cleanup. This could be done with simple modifications to the figure object and a new HTTPServer object (HTTPFileStreamServer?).

andrewcstewart commented 11 years ago

IPython.core.display.JSON, IPython.core.display.Javascript and IPython.core.display.HTML can serve all the necessary components right through iPython. Unfortunately I can't figure out how to make Python.core.display from within a function or class method.

mynameisfiber commented 11 years ago

So, this issue has already been taken care of by having a custom HTTPServer that serves from a dictionary of cStrings (I should have closed it a bit ago). That being said, @andrewcstewart, I'm not quite sure what you mean... I haven't taken that hard of a look at the IPython internals.