-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
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
.ipynband reopening as a notebook, but this loses the Interactive Window workflow. - Copying code to a
.pyfile, 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!