Add support for integration with Bokeh#3190
Draft
mattpap wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Summary
This PR add support for Bokeh for interactive visualizations and dashboards. This provides an alternative for existing support for Altair/Vega and Matplotlib. In this PR new component type
BokehEmbedis added, which accepts either a Bokeh'sDocumentor aUIElement(plots, layouts, widgets, etc.).A few notes:
metaflow-docssoon. I will update this PR when that's done.Bokehwould be better?@bokeh/bokehjs) is added in full to the main bundle. That's a lot of JavaScript, which significantly increases the size of the bundle. I need to figure out a way to load Bokeh's models (the bulk of the the size) dynamically. Alternatively, this support could be split off into its own bundle and imported in cards that actually use Bokeh.BokehEmbed.update()).BokehEmbed(). In the example below, it would allow e.g. the select widget to affect the plot. Currently this would fail withmodels can be owned only by a single documentin Bokeh.main.jsbundle at this point.Example
Screencast.from.2026-05-14.12-41-29.webm
Issue
(no issue currently assigned)
Tests
Non-Goals
AI Tool Usage