简体   繁体   English

在不同的 Window 中打开 Python 交互式选项卡

[英]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).我希望将在 VSC 中运行 jupyter 单元时弹出的“交互式 - #1”选项卡移动到新的 window 但无法(用于第二个监视器)。 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.如果我打开一个新的 window 并将选项卡拖到其中,则 GUI 会发生变化,就像它会接受选项卡一样,但是在释放单击后选项卡无法传输,就好像没有提示一样。

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. 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 window 中的选项卡它当前存在,但仍不可转让。

Anyone know how to do this?有人知道怎么做吗?

I'm a developer on the Jupyter extension that provides the Interactive Window.我是提供交互式 Window 的 Jupyter 扩展的开发人员。 The interactive window is supported by a custom editor that hosts a webview and the notebook interface.交互式 window 由托管 webview 和笔记本界面的自定义编辑器支持。 Unlike just a source file it has lots of backing data and connections going on with the host VS Code process.与源文件不同,它有大量的支持数据和与主机 VS Code 进程的连接。 So we don't support this operation of dragging it to a new VS Code window.所以我们不支持这种拖拽到新的VS Code window的操作。 You'd have to actually run the interactive window in the new VS Code window instance.您必须在新的 VS Code window 实例中实际运行交互式 window。 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如果您愿意,可以在我们的 github 页面上将此作为增强请求提交: 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.只需打开设置页面(文件 > 首选项 > 设置),搜索“交互式 window 模式”并将设置值更改为“perFile. ' Now when you run cells from different files, they will each run on their own separate window. ' 现在,当您运行来自不同文件的单元格时,它们将分别在各自独立的 window 上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python 交互窗口不断打开或运行脚本 - Python Interactive Window keeps opening a script instead or running it 打开Django Shell时出错-Visual Studio中的Python交互式窗口 - Error While Opening Django Shell - Python Interactive Window in Visual Studio Python - Selenium:提交表单而不打开新选项卡或新窗口 - Python - Selenium : Submit form without opening new tab or new window Visual Studio Code Python Interactive Window env 与所选不同? - Visual Studio Code Python Interactive Window env different from selected? Python 交互式窗口字体 - Python Interactive Window Font 在与Python中的CSV不同的选项卡中的同一浏览器中打开URL - Opening URL's on same browser in different tab from CSV in Python 在python中打开一个主窗口 - opening a main window in python 使用selenium和python在现有标签页/窗口中打开新页面中的链接 - Open a link in a new page opening in the existing tab/window using selenium and python Python object 识别(缓存)在交互 window 和使用 id() 命令时的脚本执行时不同? - Python object identification (caching) different in the interactive window and script execution when using id() command? 交互式 window 中鼠标 position 的不同格式化程序 - different formatter for the mouse position in an interactive window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM