Update dependency plotly to v7 - #14538
Open
renovate-bot wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the plotly dependency from version 5.15.0 to 7.0.0 in multiple requirements.txt files across the land-cover-classification and weather-forecasting test suites. There are no review comments, and I have no feedback to provide on these changes.
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.
This PR contains the following updates:
==5.15.0→==7.0.0Release Notes
plotly/plotly.py (plotly)
v7.0.0Compare Source
Fixed
hex_to_rgbparsing of 3-digit shorthand hexadecimal colors such as#FFF[#5662], with thanks to @genrichez for the contribution!px.*_map()auto-fitting behavior whenzoomandcenterare not specified [#5686]<!doctype html>to theto_html()template to comply with modern web standards [#5693], with thanks to @mishrakushal for the contribution!histfunc/zaggregation tomarginal_x/marginal_y="histogram"subplots indensity_heatmap/density_contour, instead of always showing raw bin counts [#3521], with thanks to @lucasjamar for the contribution!mpl_to_plotlysilently dropping matplotlib path collections in data coordinates (such as violin plots, pcolor, event plots, stack plots, fill_between, and stem plots) by rendering them as filled polygons or lines [#5702], with thanks to @robertoffmoura for the contribution!Updated
quivertrace type to visualize vector fields using arrows [#7710, #7945]scattermapbox,choroplethmapbox,densitymapboxtrace types, themapboxsubplot, and themapboxAccessTokenconfig option [#7860]. Use the equivalent*maptraces instead.graph_objectsand Plotly Express functions have also been removed in plotly.py; use themapversions insteadrgb()/rgba()strings with decimal 0–1 fractions are no longer supportedhsv()color strings are no longer supportedhsl(120, 50% 50%)are no longer supported'#ff0000aa','#f00a','rgb(255 0 0)','rgba(255 0 0 / 0.5)','hsl(0 100% 50% / 0.5)','hsla(0, 100%, 50%, 0.5)','hwb(0, 0%, 0%)',lab(),lch(),oklab(),oklch(),color(),hsl(0.5turn 60% 40%),hsl(none 60% 40%)country-regexwithcountry-iso-searchto search for country names in choropleth, scattergeo traces [#7856]. Most country names are handled exactly the same; a small number of legacy entries have been removed.layout.geo.fitboundsdefault fromfalseto'locations'[#7895].geosubplots will now auto-fit the initial view to the trace data by default.centerandzoomvalues forscattermapanddensitymaptraces. The initial map view will now auto-fit to the trace data by default. Addlayout.map.fitboundsattribute (default'locations') to enable or disable auto-fitting behavior [#7884, #7913]choroplethandscattergeotraces whose geometry crosses the antimeridian [#7891]v6.9.0Compare Source
Fixed
ValueErrorwhen an unsupported marginal plot type is passed to Plotly Express, instead of failing later with a cryptic'NoneType' object has no attribute 'constructor'message [#5625], with thanks to @eugen-goebel for the contribution!Updated
sendDataToCloudmodebar button tosendChartToCloud, and update to upload chart to Plotly Cloud [#7802, #7852, #7854]. NOTE: The Plotly Cloud endpoint for receiving charts is not yet functional, so this button won't complete the upload.scatterglerror bars after toggling traces with mixed error bar visibility [#7773], with thanks to @JulienIcon for the contribution!fitboundsto choose a compact longitude range when point data straddles the antimeridian [#7837], with thanks to @SharadhNaidu for the contribution!v6.8.0Compare Source
Added
fontparameter formake_subplots[#5393], with thanks to @Zomtir for the contribution!Fixed
color_continuous_scalewas ignored when template hadautocolorscale=True[#5439], with thanks to @antonymilne for the contribution!COLAB_NOTEBOOK_IDenv var to enable Colab renderer instead of testing import ofgoogle.colab[#5473], with thanks to @kevineger for the contribution!add_vline,add_hline,add_vrect, andadd_hrecton datetime axes [#5508], with thanks to @mosh3eb for the contribution!js/directory was unintentionally installed as a top-level Python package when installingplotly[#5587]default_height/default_widthto the outer wrapper div produced byto_htmlso that responsive (percentage) dimensions inherit from a sized parent container instead of collapsing to the plotly.js 450px fallback [#5591], with thanks to @SharadhNaidu for the contribution!Updated
__eq__method forgraph_objectsclasses now returnsNotImplementedto give the other operand an opportunity to handle the comparison [#5547], with thanks to @RazerM for the contribution!legendrank, so that it can be configured per slice [#7723]hoversortlayout attribute to sort unified hover label items by value [#7734]v6.7.0Compare Source
Added
facet_rowsupport topx.imshowfor creating subplots along an additional dimension [#5445], with thanks to @FBumann for the contribution!Fixed
numpy.percentilesyntax to stop using deprecated alias [#5483], with thanks to @Mr-Neutr0n for the contribution!numpywith a version less than 1.22 is no longer supported.px.histogramby skippingNonelabel in hover template [#5535], with thanks to @tysoncung for the contribution!Updated
hoveranywhereandclickanywherelayout attributes to enable emitting hover and click events anywhere in the plot area, not just over traces [#7707]displayNotifierconfiguration property to set the display of notifier in the top right area of the viewport [#7730]scattergeoandchoroplethtraces to use both location names and abbreviations [#7731]v6.6.0Compare Source
Fixed
type="text/javascript"attribute from<style>tag [#5454], with thanks to @hannob for the contribution!Updated
v6.5.2Compare Source
Fixed
legend,showlegendattributes don't accept array values [#5464 and #5465], with thanks to @my-tien for the contribution!v6.5.1Compare Source
Fixed
template.data.<trace_type>[#5437], with thanks to @antonymilne for the contribution!Updated
validate_ganttfunction [#5386], with thanks to @misrasaurabh1 for the contribution!showlegendandlegend, so that these can be configured per slice. [#7580]v6.5.0Compare Source
Updated
hovertemplateforcandlestickandohlctraces [#7619]Fixed
v6.4.0Compare Source
Updated
hovertemplatefallbackandtexttemplatefallbackattributes [#7577]Deprecated
create_hexbin_mapboxin favor ofcreate_hexbin_map, update related function calls [5358], with thanks to @ajlien for the contribution!v6.3.1Compare Source
Updated
shared_yaxesto work with secondary axes [#5180], with thanks to @gmjw for the contribution!Fixed
_ternary_contour.py[#5315], with thanks to @Lexachoc for the contribution!fig.show()behavior whenipythonis installed [#5258]v6.3.0Compare Source
Updated
Added
plotly.io.get_chrome()as a function which can be called from within a Python script. [#5282]Fixed
v6.2.0Compare Source
Added
include_plotlyjs='cdn'. This enhances security by ensuring browser verification of CDN-served plotly.js files [#5165] (with thanks to @ddworken)Fixed
pio.defaults[#5207]Changed
v6.1.2Compare Source
Fixed
graph_objectsclasses [#5199]v6.1.1Compare Source
Fixed
ValueErrorwhen creating a figure with subplots [#3888]fig.write_image()to not generate an image [#5193]v6.1.0Compare Source
Updated
Fixed
jupyterlabornotebookis not installed [#5104]v6.0.1Compare Source
Updated
Fixed
TypeErrorwhen usingorjsonto serializepandas.NA[#5040].category_ordersonpx.pieraisedColumnNotFoundError[#5000].DeprecationWarningshown when creating apxchart [#5080, #5086]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: (UTC)
🚦 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.