periodically update a figure in a Jupyter notebook?

Hi,
Is there a way to periodically update a figure in a Jupyter notebook?

Let’s say that I would like something like bokeh/examples/plotting/server/animated.py in notebook cell instead of a browser tab.

Thanks for your help.

Nicolas.

Please refer to the documetation here:

  http://bokeh.pydata.org/en/latest/docs/user_guide/notebook.html#notebook-handles

and the example notebooks here:

  https://github.com/bokeh/bokeh/tree/0.12.3/examples/howto/notebook_comms

Thanks,

Bryan

···

On Dec 13, 2016, at 1:19 PM, Nicolas Leclercq <[email protected]> wrote:

Hi,
Is there a way to periodically update a figure in a Jupyter notebook?
Let's say that I would like something like bokeh/examples/plotting/server/animated.py in notebook cell instead of a browser tab.
Thanks for your help.
Nicolas.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/69d627ce-ec82-44e5-922e-459a2f90e260%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks Bryan,
However, I’m looking for an asynchronous (i.e. non blocking) mechanism allowing to obtain something similar to the bokeh/examples/plotting/server/animated.py example into a notebook cell (instead of a browser tab).

Well, you can have a look at:

  https://gist.github.com/bryevdv/ff84871fcd843aceea4f0197be9c57e0

That "works" for embedding a Bokeh app in a notebook cell. However, I must note, in the strongest possible terms: this is merely a PROOF OF CONCEPT. Also note that it will require installing the 0.12.4dev9 "development build" which will be available later today or tomorrow. I would describe that technique as experimental, and fragile as well (some cells cannot be re-executed). Any of the details about the technique of embedding an app in that notebook are 100% subject to future change. Nothing there is in a final form, I cannot stress that enough.

As long as you understand and are OK with that, have fun,

Thanks,

Bryan

···

On Dec 13, 2016, at 4:36 PM, Nicolas Leclercq <[email protected]> wrote:

Thanks Bryan,
However, I'm looking for an asynchronous (i.e. non blocking) mechanism allowing to obtain something similar to the bokeh/examples/plotting/server/animated.py example into a notebook cell (instead of a browser tab).

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/62608c4c-9638-45a5-bbd7-078499a23994%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

I see. That’s a work in progress and nobody knows so far what will emerge from it.
Looking at the code, it seems very promising.

Anyway, I can wait and use browser tabs for now.

Thanks

···

Le mardi 13 décembre 2016 23:43:34 UTC+1, Bryan Van de ven a écrit :

Well, you can have a look at:

    [https://gist.github.com/bryevdv/ff84871fcd843aceea4f0197be9c57e0](https://gist.github.com/bryevdv/ff84871fcd843aceea4f0197be9c57e0)

That “works” for embedding a Bokeh app in a notebook cell. However, I must note, in the strongest possible terms: this is merely a PROOF OF CONCEPT. Also note that it will require installing the 0.12.4dev9 “development build” which will be available later today or tomorrow. I would describe that technique as experimental, and fragile as well (some cells cannot be re-executed). Any of the details about the technique of embedding an app in that notebook are 100% subject to future change. Nothing there is in a final form, I cannot stress that enough.

As long as you understand and are OK with that, have fun,

Thanks,

Bryan