-
-
Notifications
You must be signed in to change notification settings - Fork 75
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug ποΈ
I am hoping to use plotly-resampler in a Dash app. I saw plotly-resampler 0.11.0rc0 supported Plotly 6.
However, I failed to run the script. π
Reproducing the bug π
pyproject.toml
[project]
name = "my-project"
version = "1.0.0"
requires-python = "~=3.12.0"
dependencies = [
"plotly[express]==6.0.1",
"plotly-resampler==0.11.0rc0",
"dash==3.0.2",
]
main.py
from plotly_resampler import register_plotly_resampler
register_plotly_resampler()When I run uv run python src/main.py, I got error
Traceback (most recent call last):
File "/my-project/src/main.py", line 1, in <module>
from plotly_resampler import register_plotly_resampler
File "/my-project/.venv/lib/python3.12/site-packages/plotly_resampler/__init__.py", line 6, in <module>
from .figure_resampler import ASSETS_FOLDER, FigureResampler, FigureWidgetResampler
File "/my-project/.venv/lib/python3.12/site-packages/plotly_resampler/figure_resampler/__init__.py", line 13, in <module>
from .figure_resampler import ASSETS_FOLDER, FigureResampler
File "/my-project/.venv/lib/python3.12/site-packages/plotly_resampler/figure_resampler/figure_resampler.py", line 29, in <module>
from .jupyter_dash_persistent_inline_output import JupyterDashPersistentInlineOutput
File "/my-project/.venv/lib/python3.12/site-packages/plotly_resampler/figure_resampler/jupyter_dash_persistent_inline_output.py", line 17, in <module>
from dash._jupyter import JupyterDash, _jupyter_config, make_server, retry
ImportError: cannot import name 'retry' from 'dash._jupyter' (/my-project/.venv/lib/python3.12/site-packages/dash/_jupyter.py)Expected behavior π§
I expect no error.
Screenshots πΈ
If applicable, add screenshots to help explain your problem.
Environment information: (please complete the following information)
- OS:
- Python environment:
- Python version: Python 3.12
- plotly-resampler environment: just Python file, and has not added Dash related Python code, still same error.
- plotly-resampler version: 0.11.0rc0
Additional context
Add any other context about the problem here.
melanopsis and hongbo-miao
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working