Skip to content

Kaleido lectures: drop to_image's deprecated engine argument - #421

Draft
mmcky wants to merge 1 commit into
mainfrom
plotly-to-image-no-engine
Draft

mmcky wants to merge 1 commit into
mainfrom
plotly-to-image-no-engine

Conversation

@mmcky

@mmcky mmcky commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What

BCG_complete_mkts (1 call), BCG_incomplete_mkts (5) and knowing_forecasts_of_others (1) export their plotly figures with fig.to_image(format="png", engine="kaleido"). Plotly has deprecated the engine argument, since Kaleido is now its only engine. So each of the seven calls prints this into its output:

DeprecationWarning: Support for the 'engine' argument is deprecated and will be removed after September 2025. Kaleido will be the only supported engine at that time.

Before After
Image(fig.to_image(format="png", engine="kaleido")) (and fig1 once) Image(fig.to_image(format="png"))

Without the argument plotly uses Kaleido all the same, so the images should be unchanged. The warnings were found by the environment scan of 2026-11-19, and they are also in the build of this site from the lecture monorepo (QuantEcon/lectures#86). This is part of reporting lecture fixes upstream to each lecture's source of truth (QuantEcon/project-monorepo#77).

Validation (draft until done)

A full validation, as for any change to a series that drives a live site (the owner, 2026-11-22): a fresh build with no cache and every lecture executed, of this pull request and of main on the same day. They are compared for new warnings in the build logs, for changed or new warnings and errors in the cell outputs, and page by page in the HTML.

The results go in a comment here.

This changes lecture content, so it needs a person's review.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL

BCG_complete_mkts, BCG_incomplete_mkts and knowing_forecasts_of_others
call plotly's fig.to_image(format="png", engine="kaleido"). Plotly has
deprecated the engine argument, since Kaleido is now its only engine, so
each of the seven calls printed a DeprecationWarning ("Support for the
'engine' argument is deprecated and will be removed after September 2025.
Kaleido will be the only supported engine at that time.") into its
output. Without the argument plotly uses Kaleido all the same, so the
images are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
@netlify

netlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for lustrous-melomakarona-3ee73e ready!

Name Link
🔨 Latest commit a87f1bb
🔍 Latest deploy log https://app.netlify.com/projects/lustrous-melomakarona-3ee73e/deploys/6b02c27643a8f975bdf66d08
😎 Deploy Preview https://deploy-preview-421--lustrous-melomakarona-3ee73e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions
github-actions Bot temporarily deployed to pull request November 22, 2026 10:39 Inactive

This branch was previously deployed

1 inactive deployment
pull request — a87f1bb6 Deployed Nov 22, 2026 by github-actions[bot]
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