Search code examples
pythonvisual-studio-codejupyterinteractivenew-window

Opening Python Interactive Tab in different Window


I was looking to move the "Interactive - #1" tab that pops up when you run a jupyter cell in VSC to a new window but was unable (for a second monitor). If I open a new window and drag the tab to it, the GUI changes like it will accept the tab but the tab fails to transfer after releasing the click as if nothing was prompted.

I also tried per the Jupyter instructions on VSC to open an interactive window independently and then return to my python file and "use the Jupyter: Run Current File in Python Interactive Window command from the Command Palette", however, this always opens a new Interactive tab within the window it currently exists which remains untransferrable.

Anyone know how to do this?


Solution

  • I'm a developer on the Jupyter extension that provides the Interactive Window. The interactive window is supported by a custom editor that hosts a webview and the notebook interface. Unlike just a source file it has lots of backing data and connections going on with the host VS Code process. So we don't support this operation of dragging it to a new VS Code window. You'd have to actually run the interactive window in the new VS Code window instance. Sorry about that. If you would like, you could file this as an enhancement request on our github page here: https://github.com/microsoft/vscode-jupyter/issues