Repository navigation
Conversation
plotly 7.0 removed the show_link option from plotly.offline.plot, so save_plot_file crashed with a TypeError when rendering a chart. Stop passing show_link and relax the plotly dependency pin from <7.0 to <8.0 now that the code is compatible.
andrey-khropov
approved these changes
Sep 15, 2026
|
@andrey-khropov has imported your pull request. If you are a Yandex employee, you can view this diff. |
|
✅ This pull request is being closed because it has been successfully merged into our internal monorepository. |
robot-piglet
pushed a commit
that referenced
this pull request
Sep 16, 2026
Fixes #3160. ## Problem plotly 7.0 removed the `show_link` option from `plotly.offline.plot`, so `save_plot_file` (in `plot_helpers.py`) raised a `TypeError` when rendering a chart. The dependency pin `plotly (<7.0)` also prevented installing catboost alongside plotly 7.x. ## Change - Removed the now-invalid `show_link=False` argument from the `plotly.offline.plot` call in `plot_helpers.py`. `output_type='div'` and `include_plotlyjs=False` are preserved (verified against plotly 7.0.0). - Relaxed the dependency pin from `plotly (<7.0)` to `plotly (<8.0)` since the code is now compatible with 7.x. ## Test Added `ut/small/test_plot_helpers.py` — `test_save_plot_file_plotly_7_compat` asserts `save_plot_file` calls `plotly.offline.plot` without `show_link`, with `output_type='div'` and `include_plotlyjs=False`. Skips if plotly is not installed. --- Pull Request resolved: #3180 commit_hash:5bd5fdddf616b4e09738ca674322925772905cba
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.
Fixes #3160.
Problem
plotly 7.0 removed the
show_linkoption fromplotly.offline.plot, sosave_plot_file(inplot_helpers.py) raised aTypeErrorwhen rendering a chart. The dependency pinplotly (<7.0)also prevented installing catboost alongside plotly 7.x.Change
show_link=Falseargument from theplotly.offline.plotcall inplot_helpers.py.output_type='div'andinclude_plotlyjs=Falseare preserved (verified against plotly 7.0.0).plotly (<7.0)toplotly (<8.0)since the code is now compatible with 7.x.Test
Added
ut/small/test_plot_helpers.py—test_save_plot_file_plotly_7_compatassertssave_plot_filecallsplotly.offline.plotwithoutshow_link, withoutput_type='div'andinclude_plotlyjs=False. Skips if plotly is not installed.