Skip to content

[BUG] show_dash() not rendering in VS Code/Jupyter with Dash 4.0.0Β #367

Description

@arnoldjames98

Describe the bug πŸ–οΈ

Upgrading to Dash 4.0.0 causes fig.show_dash() to fail within VS Code Jupyter notebooks on my macOS system. The cell executes and creates a blank vertical space, but no plot renders. FigureWidgetResampler(fig) still works so is currently a workaround.

Reproducing the bug πŸ”

  1. Using dash==4.0.0.
  2. Open a Jupyter Notebook in VS Code on macOS.
  3. Run the following minimal code:
import pandas as pd
import numpy as np
from plotly_resampler import FigureResampler
import plotly.graph_objects as go

fig = FigureResampler(go.Figure())
x = np.arange(1000)
y = np.random.randn(1000)
fig.add_trace(go.Scattergl(name='test'), hf_x=x, hf_y=y)
fig.show_dash()

Expected behavior πŸ”§

An interactive Dash application should render inline within the VS Code notebook cell output.

Environment information:

  • OS: macOS
  • Python environment: Poetry / VS Code Jupyter Extension
    • Python version: 3.11
    • plotly-resampler environment: VS Code Notebook
  • plotly-resampler version: 0.11.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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