VSCode Insider Jupyter notebook“逐行运行代码" [英] VSCode Insider Jupyter notebook "run code by line"

查看:145
本文介绍了VSCode Insider Jupyter notebook“逐行运行代码"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 VS-Code 内部人员版本 (v1.54.0).已安装 Jupyter 扩展版本 v2021.3.600686576.另外,我正在运行普通的 VS-Code 应用程序 (v1.53.2),使用 Jupyter 扩展 v2021.2.603412351.

I am working with VS-Code insiders edition (v1.54.0). Installed Jupyter Extension version v2021.3.600686576. Separately, I am running the normal VS-Code application (v1.53.2), using Jupyter extension v2021.2.603412351.

使用 Jupyter Notebooks 进行迭代开发...Insiders Edition 中没有显示的功能之一是按行运行代码"功能,该功能通常显示在常规"应用程序中 Jupyter Notebook 的每个单元格(一个图标)的顶部.此功能支持在单元格内逐行遍历代码,类似于标准的 IDE 调试器.我可以使用数据视图和活动变量窗口在 Notebook 中为我提供基本的调试功能(与 python 标准调试器相比,或将 Notebook 导出到 Python 文件并使用 VScode 调试器).

Using Jupyter Notebooks for iterative development... One of the capabilities that does not show up in the Insiders Edition is the 'Run code by Line' capability that typically shows up at the top of each cell (An icon) in the Jupyter Notebook in the 'regular' application. This features enables a line-by-line walkthrough of the code within a cell, similar to a standard IDE debugger. I can use the dataviews and active variables windows to give me a basic debug capability within Notebook (vs python standard debugger, or exporting Notebook to Python file and using VScode debugger).

我不确定是否有一些设置可以排除这种情况......或者它是否是 Jupyter 扩展问题/更改或 VS-code Insiders 实现更改.
我在 Github 上搜索了未解决和已关闭的问题,并浏览了发行说明和变更日志,但没有看到任何相关内容.

I am not sure if there is some setting that precludes this ... or whether it is a Jupyter extension issue/change or a VS-code Insiders implementation change.
I have searched through the open and closed issues on Github and browsed release notes and changelogs, but not see anything pertinent.

如果您能提供任何帮助,我们将不胜感激.

Any help you could provide would be much appreciated.

推荐答案

尚未为 Native Notebook 实现按行运行.不过,它在我们的待办事项中 - 请随时订阅此问题以获取更新 https://github.com/microsoft/vscode-jupyter/issues/255

Run by line hasn't been implemented for Native Notebooks yet. It's on our backlog though—feel free to subscribe to this issue for updates https://github.com/microsoft/vscode-jupyter/issues/255

这篇关于VSCode Insider Jupyter notebook“逐行运行代码"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆