Ver código fonte

Bump plotly from 5.24.1 to 6.0.0 (#4287)

Bumps [plotly](https://github.com/plotly/plotly.py) from 5.24.1 to
6.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/plotly/plotly.py/releases">plotly's
releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<h2>[6.0.0] - 2025-01-28</h2>
<h3>Added</h3>
<ul>
<li>Add <code>plotly[express]</code> extra for easily installing Plotly
Express dependencies [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4644">#4644</a>]</li>
<li>Add <code>subtitle</code> attribute to all Plotly Express traces [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4830">#4830</a>].</li>
</ul>
<h3>Removed</h3>
<ul>
<li>Drop deprecated <code>pointcloud</code> and <code>heatmapgl</code>
traces from the API [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4815">#4815</a>]</li>
<li>Drop <code>tenacity</code> dependency [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4831">#4831</a>]</li>
<li>Drop support for Jupyter Notebook version 6 and earlier [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4822">#4822</a>].
The minimum supported version is now 7.0.0.</li>
</ul>
<h3>Updated</h3>
<ul>
<li>Update Plotly.js from version 2.34.2 to version 3.0.0 See the <a
href="https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#300----2025-01-27">plotly.js
CHANGELOG</a> for more information. These changes are reflected in the
auto-generated <code>plotly.graph_objects</code> module. Notable changes
include:
<ul>
<li>Make offsetgroup work with barmode &quot;stacked&quot; and
&quot;relative&quot; for bar traces [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7009">#7009</a>]</li>
<li>Drop support for deprecated attributes <code>titlefont</code>,
<code>titleposition</code>, <code>titleside</code>, and
<code>titleoffset</code> [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7212">#7212</a>].</li>
<li>Drop deprecated pointcloud and heatmapgl traces and gl2d subplots
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7213">#7213</a>]</li>
<li>Drop support for deprecated <code>bardir</code> attribute (use
<code>orientation</code> instead) [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7214">#7214</a>]</li>
<li>Drop support for deprecated <code>annotation.ref</code> attribute
(use <code>annotation.xref</code> and <code>annotation.yref</code>
instead) [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7215">#7215</a>]</li>
<li>Drop support for deprecated error bar <code>opacity</code> attribute
(use alpha channel of error bar <code>color</code> attribute instead)
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7216">#7214</a>]</li>
<li>Drop support for deprecated attribute
<code>gl3d.cameraposition</code> (use <code>gl3d.camera</code> instead)
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7217">#7217</a>]</li>
<li>Drop deprecated <code>plot3dPixelRatio</code> from config [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7231">#7231</a>]</li>
<li>Drop deprecated <code>zauto</code>, <code>zmin</code> and
<code>zmax</code> from the surface trace [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7234">#7234</a>]</li>
<li>Drop deprecated <code>autotick</code> attributes from cartesian axes
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7236">#7236</a>]</li>
<li>Drop <code>transforms</code> from the API [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7240">#7240</a>,
<a
href="https://redirect.github.com/plotly/plotly.js/pull/7254">#7254</a>]</li>
</ul>
</li>
<li>Deprecate Mapbox-based traces.[<a
href="https://redirect.github.com/plotly/plotly.py/pull/4900">#4900</a>].
See the <a href="https://plotly.com/python/mapbox-to-maplibre/">MapLibre
Migration</a> page for details on migrating from Mapbox to
Maplibre.</li>
<li>Update plotly.py to use base64 encoding of typed arrays e.g. numpy
in plotly JSON to keep precision intact and improve performance [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4470">#4470</a>].</li>
<li>Make plotly-express dataframe agnostic via Narwhals [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4790">#4790</a>].</li>
<li>Update <code>go.FigureWidget</code> to use <code>anywidget</code>
[<a
href="https://redirect.github.com/plotly/plotly.py/pull/4823">#4823</a>]</li>
<li>Use modern <a
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules">native
ES6 import</a> to load plotly.js bundle instead of requirejs which is <a
href="https://github.com/requirejs/r.js/compare/2.3.6...2.3.7">no longer
under active development</a> [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4763">#4736</a>]</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix a bug in JupyterLab &gt;= 4 and Jupyter Notebook &gt;= 7 that
caused LaTeX to not render in plotly charts [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4763">#4763</a>].</li>
<li>Fix <code>go.FigureWidget.show</code> to return
<code>FigureWidget</code> instead of displaying <code>Figure</code> [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4869">#4869</a>]</li>
</ul>
<h2>v6.0.0rc0</h2>
<h3>Added</h3>
<ul>
<li>Add <code>plotly[express]</code> extra for easily installing Plotly
Express dependencies [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4644">#4644</a>]</li>
<li>Add <code>subtitle</code> attribute to all Plotly Express traces [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4830">#4830</a>].</li>
</ul>
<h3>Removed</h3>
<ul>
<li>Drop deprecated <code>pointcloud</code> and <code>heatmapgl</code>
traces from the API [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4815">#4815</a>]</li>
<li>Drop <code>tenacity</code> dependency [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4831">#4831</a>]</li>
<li>Drop support for Jupyter Notebook version 6 and earlier [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4822">#4822</a>].
The minimum supported version is now 7.0.0.</li>
</ul>
<h3>Updated</h3>
<ul>
<li>Deprecate Mapbox-based traces.[<a
href="https://redirect.github.com/plotly/plotly.py/pull/4900">#4900</a>].
See the <a href="https://plotly.com/python/mapbox-to-maplibre/">MapLibre
Migration</a> page for details on migrating from Mapbox to
Maplibre.</li>
<li>Update plotly.py to use base64 encoding of typed arrays e.g. numpy
in plotly JSON to keep precision intact and improve performance [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4470">#4470</a>].</li>
<li>Make plotly-express dataframe agnostic via Narwhals [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4790">#4790</a>].</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md">plotly's
changelog</a>.</em></p>
<blockquote>
<h2>[6.0.0] - 2025-01-28</h2>
<h3>Added</h3>
<ul>
<li>Add <code>plotly[express]</code> extra for easily installing Plotly
Express dependencies [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4644">#4644</a>]</li>
<li>Add <code>subtitle</code> attribute to all Plotly Express traces [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4830">#4830</a>].</li>
</ul>
<h3>Removed</h3>
<ul>
<li>Drop deprecated <code>pointcloud</code> and <code>heatmapgl</code>
traces from the API [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4815">#4815</a>]</li>
<li>Drop <code>tenacity</code> dependency [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4831">#4831</a>]</li>
<li>Drop support for Jupyter Notebook version 6 and earlier [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4822">#4822</a>].
The minimum supported version is now 7.0.0.</li>
</ul>
<h3>Updated</h3>
<ul>
<li>Update Plotly.js from version 2.34.2 to version 3.0.0 See the <a
href="https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#300----2025-01-27">plotly.js
CHANGELOG</a> for more information. These changes are reflected in the
auto-generated <code>plotly.graph_objects</code> module. Notable changes
include:
<ul>
<li>Make offsetgroup work with barmode &quot;stacked&quot; and
&quot;relative&quot; for bar traces [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7009">#7009</a>]</li>
<li>Drop support for deprecated attributes <code>titlefont</code>,
<code>titleposition</code>, <code>titleside</code>, and
<code>titleoffset</code> [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7212">#7212</a>].</li>
<li>Drop deprecated pointcloud and heatmapgl traces and gl2d subplots
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7213">#7213</a>]</li>
<li>Drop support for deprecated <code>bardir</code> attribute (use
<code>orientation</code> instead) [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7214">#7214</a>]</li>
<li>Drop support for deprecated <code>annotation.ref</code> attribute
(use <code>annotation.xref</code> and <code>annotation.yref</code>
instead) [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7215">#7215</a>]</li>
<li>Drop support for deprecated error bar <code>opacity</code> attribute
(use alpha channel of error bar <code>color</code> attribute instead)
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7216">#7214</a>]</li>
<li>Drop support for deprecated attribute
<code>gl3d.cameraposition</code> (use <code>gl3d.camera</code> instead)
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7217">#7217</a>]</li>
<li>Drop deprecated <code>plot3dPixelRatio</code> from config [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7231">#7231</a>]</li>
<li>Drop deprecated <code>zauto</code>, <code>zmin</code> and
<code>zmax</code> from the surface trace [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7234">#7234</a>]</li>
<li>Drop deprecated <code>autotick</code> attributes from cartesian axes
[<a
href="https://redirect.github.com/plotly/plotly.js/pull/7236">#7236</a>]</li>
<li>Drop <code>transforms</code> from the API [<a
href="https://redirect.github.com/plotly/plotly.js/pull/7240">#7240</a>,
<a
href="https://redirect.github.com/plotly/plotly.js/pull/7254">#7254</a>]</li>
</ul>
</li>
<li>Deprecate Mapbox-based traces.[<a
href="https://redirect.github.com/plotly/plotly.py/pull/4900">#4900</a>].
See the <a href="https://plotly.com/python/mapbox-to-maplibre/">MapLibre
Migration</a> page for details on migrating from Mapbox to
Maplibre.</li>
<li>Update plotly.py to use base64 encoding of typed arrays e.g. numpy
in plotly JSON to keep precision intact and improve performance [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4470">#4470</a>].</li>
<li>Make plotly-express dataframe agnostic via Narwhals [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4790">#4790</a>].</li>
<li>Update <code>go.FigureWidget</code> to use <code>anywidget</code>
[<a
href="https://redirect.github.com/plotly/plotly.py/pull/4823">#4823</a>]</li>
<li>Use modern <a
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules">native
ES6 import</a> to load plotly.js bundle instead of requirejs which is <a
href="https://github.com/requirejs/r.js/compare/2.3.6...2.3.7">no longer
under active development</a> [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4763">#4736</a>]</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fix a bug in JupyterLab &gt;= 4 and Jupyter Notebook &gt;= 7 that
caused LaTeX to not render in plotly charts [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4763">#4763</a>].</li>
<li>Fix <code>go.FigureWidget.show</code> to return
<code>FigureWidget</code> instead of displaying <code>Figure</code> [<a
href="https://redirect.github.com/plotly/plotly.py/pull/4869">#4869</a>]</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/plotly/plotly.py/commit/49581b8a19a808a78172c9294d7e39969c9d0248"><code>49581b8</code></a>
version changes for v6.0.0</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/769d12fd90d2ea803f20e3610396aa951df1bf68"><code>769d12f</code></a>
Merge pull request <a
href="https://redirect.github.com/plotly/plotly.py/issues/4987">#4987</a>
from plotly/upgrade-plotlyjs-3.0</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/fe7147b593412be0e1dbb050760fb496b0c2d9ea"><code>fe7147b</code></a>
Update to plotly.js 3.0.0</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/0ca20aae5ad0a9de567e27f1ac4aef54ac595532"><code>0ca20aa</code></a>
Merge pull request <a
href="https://redirect.github.com/plotly/plotly.py/issues/4976">#4976</a>
from plotly/update-docs-for-dataframes</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/357ad0c450d5ba2d6f85351c0aa5722c69831a62"><code>357ad0c</code></a>
Update doc/python/px-arguments.md</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/2aa76bfb1637d534b0758088dea86b7fdafa2cfc"><code>2aa76bf</code></a>
add note on dicts and arrays</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/3d36f1468f79277d483151fd1af9b25d7bf30de6"><code>3d36f14</code></a>
Merge pull request <a
href="https://redirect.github.com/plotly/plotly.py/issues/4966">#4966</a>
from plotly/merge-recent-docs-changes</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/d8313053a8c1ec42336a0b36587a44484dab26b2"><code>d831305</code></a>
Merge pull request <a
href="https://redirect.github.com/plotly/plotly.py/issues/4969">#4969</a>
from plotly/marthacryan-patch-1</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/666c025b197c9d6d68ed215d6c624d0cad6f20f8"><code>666c025</code></a>
Merge pull request <a
href="https://redirect.github.com/plotly/plotly.py/issues/4968">#4968</a>
from plotly/figure-widget-updates</li>
<li><a
href="https://github.com/plotly/plotly.py/commit/3410e9d9d50939590e351b9184bf3be093cf35e6"><code>3410e9d</code></a>
Remove instructions to change version in README</li>
<li>Additional commits viewable in <a
href="https://github.com/plotly/plotly.py/compare/v5.24.1...v6.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=plotly&package-manager=pip&previous-version=5.24.1&new-version=6.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] 3 meses atrás
pai
commit
1137b504a0
2 arquivos alterados com 35 adições e 6 exclusões
  1. 34 5
      poetry.lock
  2. 1 1
      pyproject.toml

+ 34 - 5
poetry.lock

@@ -1682,6 +1682,32 @@ files = [
     {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"},
 ]
 
+[[package]]
+name = "narwhals"
+version = "1.24.1"
+description = "Extremely lightweight compatibility layer between dataframe libraries"
+optional = true
+python-versions = ">=3.8"
+files = [
+    {file = "narwhals-1.24.1-py3-none-any.whl", hash = "sha256:d8983fe14851c95d60576ddca37c094bd4ed24ab9ea98396844fb20ad9aaf184"},
+    {file = "narwhals-1.24.1.tar.gz", hash = "sha256:b09b8253d945f23cdb683a84685abf3afb9f96114d89e9f35dc876e143f65007"},
+]
+
+[package.extras]
+core = ["duckdb", "pandas", "polars", "pyarrow", "pyarrow-stubs"]
+cudf = ["cudf (>=24.10.0)"]
+dask = ["dask[dataframe] (>=2024.8)"]
+dev = ["covdefaults", "hypothesis", "pre-commit", "pytest", "pytest-cov", "pytest-env", "pytest-randomly", "typing-extensions"]
+docs = ["black", "duckdb", "jinja2", "markdown-exec[ansi]", "mkdocs", "mkdocs-autorefs", "mkdocs-material", "mkdocstrings[python]", "pandas", "polars (>=1.0.0)", "pyarrow"]
+duckdb = ["duckdb (>=1.0)"]
+extra = ["scikit-learn"]
+ibis = ["ibis-framework (>=6.0.0)", "packaging", "pyarrow-hotfix", "rich"]
+modin = ["modin"]
+pandas = ["pandas (>=0.25.3)"]
+polars = ["polars (>=0.20.3)"]
+pyarrow = ["pyarrow (>=11.0.0)"]
+pyspark = ["pyspark (>=3.5.0)"]
+
 [[package]]
 name = "nicegui-highcharts"
 version = "2.0.2"
@@ -2163,18 +2189,21 @@ type = ["mypy (>=1.11.2)"]
 
 [[package]]
 name = "plotly"
-version = "5.24.1"
+version = "6.0.0"
 description = "An open-source, interactive data visualization library for Python"
 optional = true
 python-versions = ">=3.8"
 files = [
-    {file = "plotly-5.24.1-py3-none-any.whl", hash = "sha256:f67073a1e637eb0dc3e46324d9d51e2fe76e9727c892dde64ddf1e1b51f29089"},
-    {file = "plotly-5.24.1.tar.gz", hash = "sha256:dbc8ac8339d248a4bcc36e08a5659bacfe1b079390b8953533f4eb22169b4bae"},
+    {file = "plotly-6.0.0-py3-none-any.whl", hash = "sha256:f708871c3a9349a68791ff943a5781b1ec04de7769ea69068adcd9202e57653a"},
+    {file = "plotly-6.0.0.tar.gz", hash = "sha256:c4aad38b8c3d65e4a5e7dd308b084143b9025c2cc9d5317fc1f1d30958db87d3"},
 ]
 
 [package.dependencies]
+narwhals = ">=1.15.1"
 packaging = "*"
-tenacity = ">=6.2.0"
+
+[package.extras]
+express = ["numpy"]
 
 [[package]]
 name = "pluggy"
@@ -4184,4 +4213,4 @@ sass = ["libsass"]
 [metadata]
 lock-version = "2.0"
 python-versions = "^3.8"
-content-hash = "070f7b280683a2fec6486d3bc4908f3e647efdc970e11f703eb5311944499d72"
+content-hash = "a9abccd4853ef4ef40bd935b9a212e18d2230236b84b33d1d1c7047121cf4e4a"

+ 1 - 1
pyproject.toml

@@ -24,7 +24,7 @@ orjson = {version = ">=3.9.15", markers = "platform_machine != 'i386' and platfo
 itsdangerous = "^2.1.2"
 aiofiles = ">=23.1.0"
 pywebview = { version = "^5.0.1", optional = true }
-plotly = { version = "^5.13.0", optional = true }
+plotly = { version = ">=5.13,<7.0", optional = true }
 matplotlib = { version = "^3.5.0", optional = true }
 httpx = ">=0.24.0"
 nicegui-highcharts = { version = "^2.0.2", optional = true }