Skip to content

Remove the kaleido dependency for unit tests - #6830

Merged
gen740 merged 2 commits into
optuna:masterfrom
c-bata:remove-kaleido-from-tests
Sep 11, 2026
Merged

gen740 merged 2 commits into
optuna:masterfrom
c-bata:remove-kaleido-from-tests

Conversation

@c-bata

@c-bata c-bata commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Motivation

Follow-up #6829

Kaleido v1.0.0 requires Chromium to be installed, which adds unnecessary environment requirements for unit tests.
https://github.com/plotly/Kaleido

Description of the changes

  • Remove the kaleido dependency from the test environment.
  • Stop exporting Plotly figures with Figure.write_image in visualization tests.
  • Stop saving Matplotlib figures with plt.savefig as well.
  • Remove the unnecessary plotly<7 constraint.

Checklist

  • I used an LLM while working on this PR.

@c-bata c-bata added the test Unit test. label Aug 27, 2026

@not522 not522 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@c-bata

c-bata commented Aug 28, 2026

Copy link
Copy Markdown
Member Author

@gen740 Could you review this PR?

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

This pull request has not seen any recent activity.

@github-actions github-actions Bot added the stale Exempt from stale bot labeling. label Sep 6, 2026
@c-bata c-bata removed the stale Exempt from stale bot labeling. label Sep 7, 2026

@gen740 gen740 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gen740
gen740 merged commit fa50eea into optuna:master Sep 11, 2026
14 checks passed
@gen740 gen740 added this to the v5.1.0 milestone Sep 11, 2026
@c-bata
c-bata deleted the remove-kaleido-from-tests branch September 11, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Unit test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants