-
Notifications
You must be signed in to change notification settings - Fork 6.7k
chore(deps): update dependency plotly to v6 #13104
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
Conversation
ghost
left a comment
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.txtpeople-and-planet-ai/weather-forecasting/tests/dataset_tests/requirements.txtpeople-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
ghost
left a comment
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:
pointcloudandheatmapgltraces 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.
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
==5.15.0->==6.0.0Release Notes
plotly/plotly.py (plotly)
v6.0.0Compare Source
Added
plotly[express]extra for easily installing Plotly Express dependencies [#4644]subtitleattribute to all Plotly Express traces [#4830].Removed
pointcloudandheatmapgltraces from the API [#4815]tenacitydependency [#4831]Updated
plotly.graph_objectsmodule. Notable changes include:titlefont,titleposition,titleside, andtitleoffset[#7212].bardirattribute (useorientationinstead) [#7214]annotation.refattribute (useannotation.xrefandannotation.yrefinstead) [#7215]opacityattribute (use alpha channel of error barcolorattribute instead) [#7214]gl3d.cameraposition(usegl3d.camerainstead) [#7217]plot3dPixelRatiofrom config [#7231]zauto,zminandzmaxfrom the surface trace [#7234]autotickattributes from cartesian axes [#7236]transformsfrom the API [#7240, #7254]go.FigureWidgetto useanywidget[#4823]Fixed
go.FigureWidget.showto returnFigureWidgetinstead of displayingFigure[#4869]v5.24.1Compare Source
Updated
v5.24.0Compare Source
Added
pxfunctions 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_objectsmodule. 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.0Compare Source
Updated
plotly.graph_objectsmodule. Notable changes include:subtitleattribute tolayout.titleto enable adding subtitles to plots [#7012]category_orderon cartesian axes [#6223],with thanks to @acxz and @prabhathc for the contribution!
ticklabelindexfor drawing the label for each minor tick n positions away from a major tick,with thanks to @my-tien for the contribution! [#7036]
ticklabelstandoffandticklabelshiftto cartesian axes to adjust positioning of tick labels,with thanks to @my-tien for the contribution! [#7006]
x0shift,x1shift,y0shift,y1shiftto shapes to add control over positioning of shape vertices on (multi-)category axes,with thanks to @my-tien for the contribution! [#7005]
pytestat version 8.1.1 to match.IntegerValidatorto handleextrasoption to allow supporting additional keyword values. For example, 'bold' and 'normal' as well as integers as used in font weights [#4612].v5.22.0Compare Source
Updated
plotly.graph_objectsmodule. Notable changes include:v5.21.0Compare Source
Updated
plotly.graph_objectsmodule. Notable changes include:zorderattribute 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!
sizemodeto cone trace [#6938]layout.hoversubplotsto enable hover effects across multiple cartesian suplots sharing one axis [#6947, #6950]Fixed
orjsonloading issue [#4562]v5.20.0Compare Source
Updated
plotly.graph_objectsmodule. Notable changes include:indentationto legend [#6874], with thanks to @my-tien for the contribution!v5.19.0Compare Source
Updated
plotly.graph_objectsmodule. Notable changes include:layout.barcornerradiusandtrace.marker.cornerradiusproperties to support rounding the corners of bar traces [#6761],with thanks to Displayr for sponsoring development!
autotickanglesto cartesian and radial axes [#6790], with thanks to @my-tien for the contribution!alignoption 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
modeis deterministic frompx[#4429]pd.Categoricaldtype with unobserved categories [#4437]column_namesreturns an unmaterialized object: generator, iterator, etc. [#4442]FutureWarningbeing displayed when setting thecolorargument inplotly.express[#4519]v5.18.0Compare Source
Updated
plotly.graph_objectsmodule. Notable changes include:insiderangeto 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!
candlestickusing react [#6757]Fixed
pandas.Series.dt.to_pydatetime()calls and suppress theFutureWarningthey currently emit. [#4379]v5.17.0Compare Source
Updated
BasePlotlyType.to_json()method [#4301]plotly.graph_objectsmodule. Notable changes include:autorangeoptions(clipmin,clipmax,minallowed,maxallowed,include) as well asminallowedandmaxallowedto cartesian, gl3d and radial axes [#6547]scaleanchorto allow removing a constraint that is set by default [#6712], with thanks to @lvlte for the contribution!Fixed
v5.16.1Compare Source
Fixed
v5.16.0Compare Source
Updated
plotly.graph_objectsmodule. Notable changes include:with thanks to @apparebit for the contribution!
newshape[#6653]pxmethods now accept data-frame-like objects that support a dataframe interchange protocol, such as polars, vaex, modin etc. This protocol has priority onto_pandascall, but will only be used if pandas>=2.0.2 is installed in the environment.pxmethods 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.