Skip to content

[BUG] Failed to run plotly-resampler 0.11.0rc0Β #348

@hongbo-miao

Description

@hongbo-miao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions