On Mar 8, 2016, at 9:24 PM, clairetang6@gmail.com wrote:
Hi Ricky,
As a workaround, you can start an http-server from the directory that your images are in and then set the image url to be something like 'http://127.0.0.1:8080/my_image.png'\!
Best,
Claire
On Tuesday, March 8, 2016 at 5:04:22 PM UTC-8, Ricky Galliani wrote:
Do you know of any possible workarounds that I can use until the bug is resolved?
On Tuesday, March 8, 2016 at 5:03:12 PM UTC-8, Bryan Van de ven wrote:
I believe this is a bug.
Bryan
> On Mar 8, 2016, at 5:39 PM, Ricky Galliani <pjgal...@gmail.com> wrote:
>
> I want to use the code below to place an image figure in my Bokeh application. However, while the code works when I just it to place an image in an html file in the browser with show(), it does not work when I add the object to Bokeh Document for my application. Why is this the case?
>
> from bokeh.plotting import *
>
> IM_HEIGHT = 348
> IM_WIDTH = 1148
>
> def create_image_fig():
> '''
> '''
> IM_FIG = Figure(x_range = (0, IM_WIDTH), y_range = (0, IM_HEIGHT),
> plot_width = IM_WIDTH, plot_height = IM_HEIGHT)
> IM_FIG.image_url(url=['file:///Users/pjgalliani/Code/vitals/pit/test_image.png'],
> x=0, y=342, w=1148, h=342)
> IM_FIG.toolbar_location = None
> IM_FIG.xaxis.visible = None
> IM_FIG.yaxis.visible = None
> IM_FIG.outline_line_color = None
>
> # ---------------------------
> curdoc().add_root(IM_FIG)
> # ^^^ Shows no image! ^^^
>
> # ---------------------------
> # output_file("test_image.html")
> # show(IM_FIG)
> # ^^^ Works as expected ^^^
>
> create_image_fig()
>
>
> --
> 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 bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/65f42590-056a-4124-a483-3e71b81389be%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/27afc1d1-9970-4898-8d2f-ee209a786a39%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.