Skip to content

Sync intro-to-bokeh with the updated tutorial - #871

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-data-visualization-bokeh-20261001
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-data-visualization-bokeh-20261001

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Companion to the maintenance update of Interactive Data Visualization in Python With Bokeh (post 211).

What changed

  • bokeh-template.py, east-west-tabbed-layout.py: import TabPanel, Tabs from bokeh.models (Bokeh 3.0 renamed Panel to TabPanel and moved it out of bokeh.models.widgets); plot_width -> width.
  • first-figure.py: plot_height/plot_width -> height/width; drop the removed h_symmetry property.
  • first-glyphs.py: height/width; circle(size=...) -> scatter(size=...) (deprecated since Bokeh 3.4).
  • multiply-glyphs.py: height/width; legend= -> legend_label=.
  • README.md: Kaggle links moved to /datasets/pablote/nba-enhanced-stats (old paths 404).

These mirror exactly the code blocks fixed in the article draft. The rest of the snippets (CDSView filters, remaining plot_width/legend= uses) are still on the Bokeh 1.x API; the card is routed to a full update, which will port them.

Verification

  • bokeh-template.py, first-figure.py, first-glyphs.py, multiply-glyphs.py run cleanly on bokeh 3.10.0 / pandas 3.0.6 / Python 3.14.
  • east-west-tabbed-layout.py depends on figures from earlier snippets; its API (TabPanel, Tabs, .width) was exercised on bokeh 3.10.0 with stand-in figures.
  • uvx ruff@0.14.1 format --check intro-to-bokeh and uvx ruff@0.14.1 check intro-to-bokeh pass.

🤖 Generated with Claude Code

…isualization in Python With Bokeh

Port the snippets fixed in the article draft to Bokeh 3.x (TabPanel/Tabs
from bokeh.models, width/height, legend_label, scatter) and point the
README's Kaggle links at the dataset's current URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant