Skip to content

Commit e47827e

Browse files
committed
comment about stable api
1 parent ce8fb9a commit e47827e

File tree

1 file changed

+7
-2
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+7
-2
lines changed

packages/python/plotly/plotly/express/_core.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
from plotly.colors import qualitative, sequential
99
import math
1010

11-
import narwhals.stable.v1 as nw
12-
1311
from plotly._subplots import (
1412
make_subplots,
1513
_set_trace_grid_reference,
1614
_subplot_type_for_trace_type,
1715
)
1816

17+
import narwhals.stable.v1 as nw
18+
19+
# The reason to use narwhals.stable.v1 is to have a stable and perfectly
20+
# backwards-compatible API, hence the confidence to not pin the Narwhals version exactly,
21+
# allowing for multiple major libraries to have Narwhals as a dependency without
22+
# forbidding users to install them all together due to dependency conflicts.
23+
1924
NO_COLOR = "px_no_color_constant"
2025

2126

0 commit comments

Comments
 (0)