Skip to content

NotebookModel memory leak #8371

@AlbertHilb

Description

@AlbertHilb

NotebookModel is not deleted after a notebook tab is closed.

Reproduce

  1. Open jupyterlab.
  2. Open a notebook.
  3. Close it.
  4. Repeat steps 2 and 3 three times.
  5. Open Chrome DevTools.
  6. Take a Heap Snapshot.
  7. Three NotebookModels are present.

Expected behavior

I don't master jupyterlab internal design, but I think no NotebookModel should be in memory or, at most, only one.

Context

  • Browser and version: Chrome 81
  • JupyterLab version: 2.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions