How to display an image with Bokeh?

Dataiker, Dataiku DSS Core Designer, Registered, Moderator Posts: 753 Dataiker
edited July 2024 in Knowledge Base

This article applies both to:

  • Bokeh webapps
  • Usage of the Bokeh library in a Jupyter notebook

Add your image to the "Static Web Resources"

  • In the global menu of DSS, select "Global Shared Code". If you don't see this menu, your administrator needs to grant you additional permissions.

bokeh1.png

  • Click on "Static Web Resources" and upload your image.

bokeh2.png

Reference the image in your code

In your Bokeh code, use the image_url function:

path = "/local/static/path-of-the-image-within-resources.png"

p.image_url(url=[path])

What's next?

For more information on using Bokeh in Dataiku DSS, please visit the reference documentation.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.