Skip to content

Option to Save and Restore Interactive Window Sessions #25217

@pipegr

Description

@pipegr

Is the feature request related to a problem?

Currently, the Interactive Window in VS Code is great for REPL-style coding, but there is no built-in way to save the session (including code cells and outputs) and restore it later (I know you can save or export as .ipynb or .py but restoring or opening isn't possible). This makes it difficult to continue work across sessions or after restarting VS Code.

The solution I'd like

I would like an option to save the entire Interactive Window session (code cells and outputs) to a file, and later restore it—repopulating the Interactive Window as it was. This could be similar to how notebooks are saved and loaded, or by exporting/importing a special session file.

Alternatives I've considered

  • Exporting to .ipynb and reopening as a notebook, but this loses the Interactive Window workflow.
  • Copying code to a .py file, but this does not preserve cell structure or outputs.

Additional context

This feature would make the Interactive Window much more useful for iterative and experimental workflows, allowing users to pause and resume work seamlessly. Saving/exporting and closing it automatically empties the Interactive Window.

Thank you!

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions