You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option to Save and Restore Interactive Window Sessions #25217
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.
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
Activity
github-actions commentedon Dec 8, 2025
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
anthonykim1 commentedon Nov 18, 2026
Thanks for the request. The community-feedback window announced above has passed without the 7 👍 needed, so we're closing it under our community-feedback process: https://github.com/microsoft/vscode-python/wiki/Issue-Management. The Interactive Window itself is owned by the Jupyter extension: https://github.com/microsoft/vscode-jupyter.
(Authored by Copilot on behalf of anthonykim1)