XpomAE
XpomAE

Reputation: 13

VSCode ipython cells are not clearing their output on running

I've only encountered this in VSCode: why

I want to see only one, last output of the cell.

There are no such problem if cell contains print(): with print

Version: 1.84.2 (system setup)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22631
Jupyter v2023.10.1100000000
Python v2023.21.13341009

Upvotes: 1

Views: 730

Answers (2)

Ransingh Satyajit Ray
Ransingh Satyajit Ray

Reputation: 404

In the "change presentation to" option choose VS Code builtin notebook output renderer(vscode.builtin-notebook-renderer). You may be facing the issue because the Jupyter extension version is marking it to something else.

Happy coding!!

enter image description here

Upvotes: 1

JialeDu
JialeDu

Reputation: 9727

Updates extension to the latest version or use a pre-release version.

enter image description here

In addition, this may be related to your operation method. You can use the following method to clear the output in the output panel.

enter image description here

Upvotes: -1

Related Questions