Skip to content

Slow notebook formating with a lot of cells #128165

@rebornix

Description

@rebornix

Originally reported by @joyceerhl

  • Create a jupyter notebook (e.g., create a new file test.ipynb)
  • Insert a new cell with content (make sure the cell language is python)
j = [1,
     2,
     3
]
  • Select the cell container, alt+shift+down to duplicate the cell 150 times (you can duplicate 5 times, ctrl+a to select all cells, then alt+shift+down to duplicate all selected cells)
  • Open command palette and run format notebook

It took more than one minute to format the whole document as we format cells sequentially and every cell took python half a second to format. We should at least request formatting in parallel.

Metadata

Metadata

Assignees

Labels

freeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesinsiders-releasedPatch has been released in VS Code Insidersnotebook

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions