有没有办法在VSCODE JUPYTER NOTEBOVE文件中关闭异步输出?

发布于 2025-01-23 14:59:43 字数 354 浏览 0 评论 0原文

我想知道是否有一种使用Jupyter笔记本在VScode中关闭异步输出的方法。当在VSCODE中执行程序时,每个单元格的输出在其循环下显示,但是,理想情况下,所有输出都像所有输出一样在同一位置出现。

任何帮助都很棒!

基本上,该代码被组织到单元格中,并且每个单元都将在执行后立即打印其输出。因此格式为:

代码单元格, 输出, 代码单元, 输出 ...

而ID喜欢它是:

代码单元, 代码单元, 代码单元, 输出 ...

示例

I was wondering if there is a way to turn off asynchronous outputting in VSCode using a Jupyter Notebook. When executing a program in VSCode the outputs of each cell are shown below it as it cycles, however, ideally id like all outputs to be in the same place for presentation sake.

Any help would be awesome!

Basically the code is organised into cells, and each cell will print its output as soon as it has been executed. So the format goes:

Code cell,
Output,
Code cell,
Output
...

whereas id like it to be:

Code cell,
Code cell,
Code cell,
Output
...

Example

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文