Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency plotly to v6 #1808

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 28, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
plotly (source, changelog) >=5.21.0,<6 -> >=6,<7 age adoption passing confidence

Release Notes

plotly/plotly.py (plotly)

v6.0.0

Compare Source

Added
  • Add plotly[express] extra for easily installing Plotly Express dependencies [#​4644]
  • Add subtitle attribute to all Plotly Express traces [#​4830].
Removed
  • Drop deprecated pointcloud and heatmapgl traces from the API [#​4815]
  • Drop tenacity dependency [#​4831]
  • Drop support for Jupyter Notebook version 6 and earlier [#​4822]. The minimum supported version is now 7.0.0.
Updated
  • Update Plotly.js from version 2.34.2 to version 3.0.0 See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated plotly.graph_objects module. Notable changes include:
    • Make offsetgroup work with barmode "stacked" and "relative" for bar traces [#​7009]
    • Drop support for deprecated attributes titlefont, titleposition, titleside, and titleoffset [#​7212].
    • Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [#​7213]
    • Drop support for deprecated bardir attribute (use orientation instead) [#​7214]
    • Drop support for deprecated annotation.ref attribute (use annotation.xref and annotation.yref instead) [#​7215]
    • Drop support for deprecated error bar opacity attribute (use alpha channel of error bar color attribute instead) [#​7214]
    • Drop support for deprecated attribute gl3d.cameraposition (use gl3d.camera instead) [#​7217]
    • Drop deprecated plot3dPixelRatio from config [#​7231]
    • Drop deprecated zauto, zmin and zmax from the surface trace [#​7234]
    • Drop deprecated autotick attributes from cartesian axes [#​7236]
    • Drop transforms from the API [#​7240, #​7254]
  • Deprecate Mapbox-based traces.[#​4900]. See the MapLibre Migration page for details on migrating from Mapbox to Maplibre.
  • Update plotly.py to use base64 encoding of typed arrays e.g. numpy in plotly JSON to keep precision intact and improve performance [#​4470].
  • Make plotly-express dataframe agnostic via Narwhals [#​4790].
  • Update go.FigureWidget to use anywidget [#​4823]
  • Use modern native ES6 import to load plotly.js bundle instead of requirejs which is no longer under active development [#​4736]
Fixed
  • Fix a bug in JupyterLab >= 4 and Jupyter Notebook >= 7 that caused LaTeX to not render in plotly charts [#​4763].
  • Fix go.FigureWidget.show to return FigureWidget instead of displaying Figure [#​4869]

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from Anselmoo as a code owner January 28, 2025 20:27
Copy link

Review changes with  SemanticDiff

Copy link
Contributor

sourcery-ai bot commented Jan 28, 2025

Reviewer's Guide by Sourcery

This pull request updates the plotly dependency from version 5 to version 6. This includes changes to the plotly.js library, which introduces breaking changes such as dropping support for deprecated attributes and traces. The update also includes improvements to the library such as using base64 encoding for typed arrays and making plotly-express dataframe agnostic.

Class diagram showing Plotly v6 API changes

classDiagram
    class PlotlyExpress {
        +subtitle: string
    }

    class DeprecatedFeatures {
        -pointcloud
        -heatmapgl
        -transforms
        -bardir
        -titlefont
        -titleposition
        -titleside
        -titleoffset
        -annotation.ref
        -plot3dPixelRatio
    }

    class NewFeatures {
        +base64TypedArrays
        +dataframeAgnostic
        +plotlyExpress_extra
    }

    note for DeprecatedFeatures "Removed in v6.0.0"
    note for NewFeatures "Added in v6.0.0"
Loading

File-Level Changes

Change Details Files
Update plotly dependency to v6
  • Updated the plotly dependency in the jupyter optional dependencies group.
  • Updated the plotly dependency in the all optional dependencies group.
pyproject.toml
Update uv.lock file
  • Updated the lock file to reflect the new plotly dependency.
uv.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

@github-actions github-actions bot added maintenance Maintenance & Security dependencies Pull requests that update a dependency file root labels Jan 28, 2025
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a6abbf3) to head (5b7eff4).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1808   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           45        45           
  Lines         4535      4535           
=========================================
  Hits          4535      4535           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@Anselmoo Anselmoo merged commit b64d170 into main Jan 31, 2025
40 of 41 checks passed
@Anselmoo Anselmoo deleted the renovate/plotly-6.x branch January 31, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file maintenance Maintenance & Security root size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant