File tree
Expand file treeCollapse file tree4 files changed
+9
-6
lines changed tests/test_core/test_figure_widget_backend
Expand file treeCollapse file tree4 files changed
+9
-6
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -25,6 +25,7 @@ commands:
|
25 | 25 | curl -LsSf https://astral.sh/uv/install.sh | sh
|
26 | 26 | uv venv
|
27 | 27 | source .venv/bin/activate
|
| 28 | + uv lock --check |
28 | 29 | uv sync --extra dev_core
|
29 | 30 | - run:
|
30 | 31 | name: List installed packages and python version
|
|
Original file line number | Diff line number | Diff line change |
---|
@@ -42,7 +42,6 @@ dependencies = [
|
42 | 42 | express = ["numpy"]
|
43 | 43 | kaleido = ["kaleido==1.0.0rc15"]
|
44 | 44 | dev_core = [
|
45 |
| -"anywidget", |
46 | 45 | "pytest",
|
47 | 46 | "requests",
|
48 | 47 | # pin precise version of ruff to prevent accidental reformatting in case its defaults are updated
|
@@ -56,6 +55,7 @@ dev_build = [
|
56 | 55 | dev_optional = [
|
57 | 56 | "plotly[dev_build]",
|
58 | 57 | "plotly[kaleido]",
|
| 58 | +"anywidget", |
59 | 59 | "colorcet",
|
60 | 60 | # fiona>1.9.6 is not compatible with geopandas<1; geopandas>=1 is not compatible with python 3.8
|
61 | 61 | "fiona<=1.9.6;python_version<='3.8'",
|
@@ -101,6 +101,7 @@ plotly = [
|
101 | 101 | "package_data/*",
|
102 | 102 | "package_data/templates/*",
|
103 | 103 | "package_data/datasets/*",
|
| 104 | +"validators/_validators.json" |
104 | 105 | ]
|
105 | 106 |
|
106 | 107 | [tool.jupyter-packaging.builder]
|
|
Original file line number | Diff line number | Diff line change |
---|
|
| 1 | +# ruff: noqa: F401 F403 F405 |
| 2 | + |
1 | 3 | import pytest
|
2 | 4 |
|
3 | 5 | # Use wildcard import to make sure FigureWidget is always included
|
4 |
| -from plotly.graph_objects import FigureWidget |
| 6 | +from plotly.graph_objects import * |
| 7 | +from plotly.missing_anywidget import FigureWidget as FigureWidgetMissingAnywidget |
5 | 8 |
|
6 | 9 | try:
|
7 |
| -from plotly.missing_anywidget import FigureWidget as FigureWidgetMissingAnywidget |
| 10 | +import anywidget as _anywidget |
8 | 11 |
|
9 | 12 | missing_anywidget = False
|
10 | 13 | except Exception:
|
|
You can’t perform that action at this time.
0 commit comments