I would like to add image in my bokeh server application running python file. On local machine my image is shown with absolute path (e.g. C:\Myapp\logo.jpg). But when I apply on server machine the image is not shown (servername\Myapp\logo.jpg).
My question is what is the root for image. I copy the logo file in the same folder as .py code and also in the subfolder named logo and changed the path, but the image is not shown in the div, neither together with the title (e.g
I would like to add image in my bokeh server application running python file. On local machine my image is shown with absolute path (e.g. C:\\Myapp\logo.jpg). But when I apply on server machine the image is not shown (servername\Myapp\logo.jpg).
My question is what is the root for image. I copy the logo file in the same folder as .py code and also in the subfolder named logo and changed the path, but the image is not shown in the div, neither together with the title (e.g <h1><img src=....).
where distribution_RadioGroup, pre, presost, info1 radioButton_Reg, radioButton_group are widgets and plot, p2, p3 and p are plots
what I missed?
Goran
···
On Tuesday, January 2, 2018 at 7:53:44 PM UTC+1, Goran Goki wrote:
I would like to add image in my bokeh server application running python file. On local machine my image is shown with absolute path (e.g. C:\Myapp\logo.jpg). But when I apply on server machine the image is not shown (servername\Myapp\logo.jpg).
My question is what is the root for image. I copy the logo file in the same folder as .py code and also in the subfolder named logo and changed the path, but the image is not shown in the div, neither together with the title (e.g
If I understood well If I run .py file does it mean that the image will be read from static folder?, because I have a problem to run bokeh app in directory format because of the error message “ERROR:‘utf-8’ codec can’t decode byte 0xc0 in position 82: invalid start byte” (I use # -- coding: cp1251 -- (cyrilic) to read jstat data with pyjstat).
Goran
···
On Tuesday, January 2, 2018 at 8:04:27 PM UTC+1, Bryan Van de ven wrote:
Hi,
By default Bokeh server will look for (and serve) a static subdirectory in directory style apps:
I would like to add image in my bokeh server application running python file. On local machine my image is shown with absolute path (e.g. C:\Myapp\logo.jpg). But when I apply on server machine the image is not shown (servername\Myapp\logo.jpg).
My question is what is the root for image. I copy the logo file in the same folder as .py code and also in the subfolder named logo and changed the path, but the image is not shown in the div, neither together with the title (e.g
<img src=…).
Goran
–
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].