Skip to content

Regular non-Solara plots not showing in Jupyter Notebooks after Solara has been used #703

@EwoutH

Description

@EwoutH

For some reason, regular matplotlib and seaborn plots don't show anymore after a Solara page has been initiated. In the code below you can see the first seaborn plot showing well, but the second not showing.

In PyCharm, the first plot is also shown fine, but instead of just not showing the second plot anymore, but gives an error:

ipykernel_29332\2165788151.py:2: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
  plt.show()

Here's a notebook to reproduce: solara_bug_plotting.zip
And here's the same notebook in Google Colab.

First plot shows fine:
image

After a Solara component, the second errors or doesn't show anymore:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions