☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Showing local images in Jupyter

Community Support
dwg
dwg

I have some plots that use ImageURL to display local images. When attempting to plot in Jupyter (in Chrome or Firefox), the images are blank and the console shows an “Not allowed to load local resource” error. I believe this has something to do with CORS policies? Anyway, since I’m only ever running this locally and don’t really care about security, is there any way to make it work? I know I can run a Bokeh server and mount the images as static resources, but I like the convenience of doing everything in Jupyter.

⌁   Link to post
Bryan
Bryan

That’s a browser security restriction outside our control, I am afraid. Some options:

  • Serve the images with some super simple server, e.g built-in python -m http.server. That way the images have a real http:// URL instead of a file:// path. That should work.
  • Load the images and convert them to RGBA arrays and use image_rgba instead.
⌁   Link to post

End of archived discussion · Replies are disabled