How to use InteractiveImage with bokeh server/app?

Hi,

alright, so I built an example app with datashader, but I am having
trouble getting it to open with bokeh. Can anyone point me to an
example, which starts bokeh server and displays a InteractiveImage? All
the examples I looked at are ending at dumping the InteractiveImage to
the jupyter notebook console and it's not possible to just use it
instead of a bokeh figure or plot in a bokeh app.

Pretty much any way to show an InteractiveImage in a browser without
using a jupyter notebook would be fine.

Thanks a lot
Jan

Okay, let me try again with a different way to ask.

Pretty much any way to show an InteractiveImage in a browser without
using a jupyter notebook would be fine.

Where is the documentation for the class InteractiveImage?

I cannot find it neither in the datashader documentation [0] nor the
bokeh documentation [1].

[0] datashader.readthedocs.io/en/latest/api.html
[1] http://bokeh.pydata.org/en/latest/docs/reference.html

Cheers
Jan

···

Am 17.06.2016 um 19:07 schrieb Jan Girlich:

The documentation for InteractiveImage is in the source code https://github.com/bokeh/datashader/blob/master/datashader/bokeh_ext.py#L24 , including the bit most relevant to your interest:

Bokeh-based interactive image object that updates on pan/zoom events.

Given a Bokeh plot and a callback function, calls the function

whenever the pan or zoom changes the plot’s extent, regenerating

the image dynamically. Works in a Jupyter/IPython notebook cell,

using the existing notebook kernel Python process (not a separate

Bokeh server). Does not yet support usage outside the notebook,

but could be extened to use Bokeh server in that case.

I.e., this class only supports Jupyter notebooks, and will not currently work with Bokeh server. It should clearly be documented somewhere more obvious, but we are currently investigating whether we can make it work well with Bokeh server, at which point it will move from datashader into Bokeh itself. So, it’s in transition right now; it’s fully usable in Jupyter notebooks, but not currently beyond that. It’s not a lot of code in total, so you could consider adapting it to work with Bokeh server yourself, but there are definitely tricky aspects to it (or we would have done so already!).

Hi James,

I.e., this class only supports Jupyter notebooks, and will not currently
work with Bokeh server. It should clearly be documented somewhere more
obvious, but we are currently investigating whether we can make it work
well with Bokeh server, at which point it will move from datashader into
Bokeh itself. So, it's in transition right now; it's fully usable in
Jupyter notebooks, but not currently beyond that. It's not a lot of code
in total, so you could consider adapting it to work with Bokeh server
yourself, but there are definitely tricky aspects to it (or we would have
done so already!).

thank you. I should've looked into the source myself.

Unfortunately I'm just building a prototype to see if we can use this
technology to base our product on, so rewriting InteractiveImage is out
of scope for me right now. I'll try to build a prototype using the
dashboard example and see if we can use this approach instead.

Cheers
Jan

···

Am 21.06.2016 um 17:37 schrieb James A. Bednar:
--
mobile phone: +49 173 4244 494

Key fingerprint = FCE4 0BCD 63E9 B426 84AC 9EDC 6EDD 26B6 32BB 9E09

             modzero AG Schweiz modzero GmbH Deutschland
              Oberfeldstr. 120B Friedrichstr. 95
             CH-8408 Winterthur DE-10117 Berlin
         HRB CH-020.3.036.501-1 HRB 147824 B (Charlottenburg)
  MwSt. ID: CH-236.520.692 MWST USt. ID: DE288107996

Geschaeftsleiter: Max Moser & Thorsten Schroeder
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
by mistake) please notify the sender immediately and destroy this
e-mail. Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.

Hi,

I am also interested in using InteracticeImage with a bokeh server application.

As some months passed by: Are there any news or decisions concerning making InteracticeImage available to bokeh server?

Thanks

Daniel

···

Am Freitag, 17. Juni 2016 19:07:10 UTC+2 schrieb Jan Girlich:

Hi,

alright, so I built an example app with datashader, but I am having

trouble getting it to open with bokeh. Can anyone point me to an

example, which starts bokeh server and displays a InteractiveImage? All

the examples I looked at are ending at dumping the InteractiveImage to

the jupyter notebook console and it’s not possible to just use it

instead of a bokeh figure or plot in a bokeh app.

Pretty much any way to show an InteractiveImage in a browser without

using a jupyter notebook would be fine.

Thanks a lot

Jan

Is there any working prototype for datashader with bokeh server? I assume this can be done via bokeh ImageRGB model,
but before I dig much into it, an example would be helpful.

···

On Sunday, October 23, 2016 at 12:22:42 PM UTC+2, Daniel Krause wrote:

Hi,

I am also interested in using InteracticeImage with a bokeh server application.

As some months passed by: Are there any news or decisions concerning making InteracticeImage available to bokeh server?

Thanks

Daniel

Am Freitag, 17. Juni 2016 19:07:10 UTC+2 schrieb Jan Girlich:

Hi,

alright, so I built an example app with datashader, but I am having

trouble getting it to open with bokeh. Can anyone point me to an

example, which starts bokeh server and displays a InteractiveImage? All

the examples I looked at are ending at dumping the InteractiveImage to

the jupyter notebook console and it’s not possible to just use it

instead of a bokeh figure or plot in a bokeh app.

Pretty much any way to show an InteractiveImage in a browser without

using a jupyter notebook would be fine.

Thanks a lot

Jan

Hi Actur,

You can find multiple examples at https://github.com/bokeh/datashader/tree/master/examples

Regards,

Eugene

···

On Monday, February 12, 2018 at 11:12:53 PM UTC+7, Artur Scholz wrote:

Is there any working prototype for datashader with bokeh server? I assume this can be done via bokeh ImageRGB model,
but before I dig much into it, an example would be helpful.

On Sunday, October 23, 2016 at 12:22:42 PM UTC+2, Daniel Krause wrote:

Hi,

I am also interested in using InteracticeImage with a bokeh server application.

As some months passed by: Are there any news or decisions concerning making InteracticeImage available to bokeh server?

Thanks

Daniel

Am Freitag, 17. Juni 2016 19:07:10 UTC+2 schrieb Jan Girlich:

Hi,

alright, so I built an example app with datashader, but I am having

trouble getting it to open with bokeh. Can anyone point me to an

example, which starts bokeh server and displays a InteractiveImage? All

the examples I looked at are ending at dumping the InteractiveImage to

the jupyter notebook console and it’s not possible to just use it

instead of a bokeh figure or plot in a bokeh app.

Pretty much any way to show an InteractiveImage in a browser without

using a jupyter notebook would be fine.

Thanks a lot

Jan