-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore(deps): update dependency plotly to v6 #13104
base: main
Are you sure you want to change the base?
chore(deps): update dependency plotly to v6 #13104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi team,
I'm currently reviewing this pull request and will provide my feedback shortly. In the meantime, here's a summary of the changes for you and other reviewers to get up to speed quickly:
This pull request, submitted by Renovate Bot, updates the plotly
dependency across several projects to version 6.0.0
from 5.15.0
. The update affects the following files:
people-and-planet-ai/land-cover-classification/requirements.txt
people-and-planet-ai/weather-forecasting/tests/dataset_tests/requirements.txt
people-and-planet-ai/weather-forecasting/tests/predictions_tests/requirements.txt
The changes are straightforward: a simple version bump in each requirements.txt
file. The release notes for plotly
6.0.0 are extensive and include additions, removals, and updates to Plotly.js. Key changes include the addition of a plotly[express]
extra, the addition of a subtitle
attribute to Plotly Express traces, and the removal of deprecated traces and dependencies. A full changelog is included in the PR description.
I'll be checking for any potential conflicts or regressions introduced by this update. Please review the changes and release notes carefully before merging.
A little verse to brighten your day,
On updates and changes along the way:
Code flows like a river so deep,
New versions arrive, secrets to keep.
Best,
Gemini/code-review-assist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request updates the plotly
dependency to version 6.0.0. Upgrading to major versions often introduces breaking changes, so it's important to thoroughly test the code after this update. The release notes mention several potentially breaking changes, including dropping support for older Jupyter Notebook versions, dropping the tenacity
dependency, and several changes to Plotly.js, which underlies the Python library. I recommend reviewing the full changelog and testing all areas of your code that use plotly
to ensure compatibility.
I've summarized the key elements of the changelog that might require code changes below:
- Dropped Traces:
pointcloud
andheatmapgl
traces are removed. If you're using these, you'll need to find alternatives. - Jupyter Notebook: Support for Jupyter Notebook version 6 and earlier is dropped. Ensure you're using Jupyter Notebook 7 or later.
- Plotly.js 3.0.0: This update includes significant changes to Plotly.js. Pay close attention to the list of dropped attributes and updated behaviors in the changelog.
- Mapbox Deprecation: Mapbox-based traces are deprecated in favor of Maplibre. Plan to migrate to Maplibre according to the provided migration guide.
- Dataframe Agnostic Plotly Express: Plotly Express is now dataframe agnostic, which might affect how you pass data. Review the changelog for details.
Given the potential for breaking changes, I recommend testing thoroughly and addressing any compatibility issues before merging.
This PR contains the following updates:
==5.15.0
->==6.0.0
Release Notes
plotly/plotly.py (plotly)
v6.0.0
Compare Source
Added
plotly[express]
extra for easily installing Plotly Express dependencies [#4644]subtitle
attribute to all Plotly Express traces [#4830].Removed
pointcloud
andheatmapgl
traces from the API [#4815]tenacity
dependency [#4831]Updated
plotly.graph_objects
module. Notable changes include:titlefont
,titleposition
,titleside
, andtitleoffset
[#7212].bardir
attribute (useorientation
instead) [#7214]annotation.ref
attribute (useannotation.xref
andannotation.yref
instead) [#7215]opacity
attribute (use alpha channel of error barcolor
attribute instead) [#7214]gl3d.cameraposition
(usegl3d.camera
instead) [#7217]plot3dPixelRatio
from config [#7231]zauto
,zmin
andzmax
from the surface trace [#7234]autotick
attributes from cartesian axes [#7236]transforms
from the API [#7240, #7254]go.FigureWidget
to useanywidget
[#4823]Fixed
go.FigureWidget.show
to returnFigureWidget
instead of displayingFigure
[#4869]v5.24.1
Compare Source
Updated
v5.24.0
Compare Source
Added
px
functions for maps:scatter_map
,line_map
,choropleth_map
, anddensity_map
.Updated
Updated Plotly.js from version 2.34.0 to version 2.35.0. See the plotly.js CHANGELOG for more information. These changes are reflected in the auto-generated
plotly.graph_objects
module. Notable changes include:Fixed a bug in integer validation of arrays that threw an error when an array contained a mix of strings and integers.
v5.23.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:subtitle
attribute tolayout.title
to enable adding subtitles to plots [#7012]category_order
on cartesian axes [#6223],with thanks to @acxz and @prabhathc for the contribution!
ticklabelindex
for drawing the label for each minor tick n positions away from a major tick,with thanks to @my-tien for the contribution! [#7036]
ticklabelstandoff
andticklabelshift
to cartesian axes to adjust positioning of tick labels,with thanks to @my-tien for the contribution! [#7006]
x0shift
,x1shift
,y0shift
,y1shift
to shapes to add control over positioning of shape vertices on (multi-)category axes,with thanks to @my-tien for the contribution! [#7005]
pytest
at version 8.1.1 to match.IntegerValidator
to handleextras
option to allow supporting additional keyword values. For example, 'bold' and 'normal' as well as integers as used in font weights [#4612].v5.22.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:v5.21.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:zorder
attribute to various cartesian traces for controlling stacking order of SVG traces drawn into a subplot [#6918, #6953],This feature was anonymously sponsored: thank you to our sponsor!
with thanks to @my-tien for the contribution!
sizemode
to cone trace [#6938]layout.hoversubplots
to enable hover effects across multiple cartesian suplots sharing one axis [#6947, #6950]Fixed
orjson
loading issue [#4562]v5.20.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:indentation
to legend [#6874], with thanks to @my-tien for the contribution!v5.19.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:layout.barcornerradius
andtrace.marker.cornerradius
properties to support rounding the corners of bar traces [#6761],with thanks to Displayr for sponsoring development!
autotickangles
to cartesian and radial axes [#6790], with thanks to @my-tien for the contribution!align
option to sankey nodes to control horizontal alignment [#6800],with thanks to @adamreeve for the contribution!
bdata
) andshape
(for 2 dimensional arrays) to declare various typed arrays i.e.dtype=(float64|float32|int32|int16|int8|uint32|uint16|uint8)
[#5230]stadiamaps.com
, the users may also need to provide their own API_KEY viaconfig.mapboxAccessToken
[#6776, #6778]Fixed
mode
is deterministic frompx
[#4429]pd.Categorical
dtype with unobserved categories [#4437]column_names
returns an unmaterialized object: generator, iterator, etc. [#4442]FutureWarning
being displayed when setting thecolor
argument inplotly.express
[#4519]v5.18.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:insiderange
to cartesian axes to help avoid overlap between visible grid lines and tick labels of the counter axis when they are positioned inside [#6735], this feature was anonymously sponsored: thank you to our sponsor!with thanks to @bhavinpatel1109 for the contribution!
with thanks to @adamjhawley for the contribution!
candlestick
using react [#6757]Fixed
pandas.Series.dt.to_pydatetime()
calls and suppress theFutureWarning
they currently emit. [#4379]v5.17.0
Compare Source
Updated
BasePlotlyType.to_json()
method [#4301]plotly.graph_objects
module. Notable changes include:autorangeoptions
(clipmin
,clipmax
,minallowed
,maxallowed
,include
) as well asminallowed
andmaxallowed
to cartesian, gl3d and radial axes [#6547]scaleanchor
to allow removing a constraint that is set by default [#6712], with thanks to @lvlte for the contribution!Fixed
v5.16.1
Compare Source
Fixed
v5.16.0
Compare Source
Updated
plotly.graph_objects
module. Notable changes include:with thanks to @apparebit for the contribution!
newshape
[#6653]px
methods now accept data-frame-like objects that support a dataframe interchange protocol, such as polars, vaex, modin etc. This protocol has priority onto_pandas
call, but will only be used if pandas>=2.0.2 is installed in the environment.px
methods now accept data-frame-like objects that support atoPandas()
method, such as Spark DataFrames, or ato_pandas_df()
method, such as Vaex DataFrames.Fixed
frame.insert
[#4246]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: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.