[IPython-User] dynamic notebook graph
Matthias BUSSONNIER
bussonniermatthias@gmail....
Tue Apr 24 12:53:36 CDT 2012
Hi,
This it not doable out of the box.
There are some proof of concept of live updating graph in the notebook using d3js.
See ML archive :
http://python.6.n6.nabble.com/experiment-remote-execution-of-jquery-and-d3-code-into-the-browser-via-ipython-td4633053.html
There are some plan of supporting 'widgets' in notebook to do such things, but not yet.
Or you could try to look at clear_output() in docs/examples/notebooks/Animations_and_Progress.ipynb
And regularly send a figure to have 'kind of' an animation, but it will be blocking the notebook.
Good luck.
--
Matthias.
Le 23 avr. 2012 à 19:20, Michaelian Ennis a écrit :
> I just realized I sent this to dev instead of user. Moving it over.
>
> I have a method, say, obj.getstats() that returns data structure
> that looks like:
>
> {'22': {'port': '22',
> 'kind': 'tcp',
> 'read': {'rate': '0.000', 'avg': '0', 'max': '0'},
> 'write': {'rate': '0.000', 'avg': '0', 'max': '0'}},
> '80': {'port': '80',
> 'kind': 'tcp',
> 'read': {'rate': '0.677', 'avg': '2', 'max': '15'},
> 'write': {'rate': '0.000', 'avg': '0', 'max': '0'}},
> '443': {'port': '443',
> 'kind': 'tcp',
> 'read': {'rate': '0.677', 'avg': '1', 'max': '20'},
> 'write': {'rate': '0.000', 'avg': '0', 'max': '0'}}
> }
>
> every time its called. I'd like to graph this data in a simple bar
> graph but have that graph update every so many seconds. I'd like to
> to this in notebook. Is there support for such a thing? If so what
> do I need to read to get it working?
>
> Ian
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
More information about the IPython-User
mailing list