简体   繁体   中英

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?

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

Just open the settings page (File > Preferences > Settings), search for 'interactive window mode' and change the setting value to 'perFile. ' Now when you run cells from different files, they will each run on their own separate window.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM