Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

"module://matplotlib_pyodide.wasm_backend" should auto clear the old pictures instead of generate new pictures #49

@yu0A

Description

@yu0A

🐛 Bug

When use "module://matplotlib_pyodide.wasm_backend" to output pictures, each time it appends new divs and let the height of the page changes. That's unacceptable for admin apps.

To Reproduce

Clone this repo

  • deploy and run the code
  • go to the page http://localhost:9000/#/matplotlib
  • click the northwest button "执行" >= 2 times and you will see the page become longer and longer

Expected behavior

the constant amount of picture output

Environment

  • Pyodide Version:0.24.1
  • Browser version:Chrome 120.0.6099.227
  • Any other relevant information:

Additional context

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