Closed pe224 closed 1 month ago
Update:
It actually works fine on my coworkers PC.
First thing I tried was to manually disable all extensions besides jupyter
. This did not help.
However, when firing up a fresh, portable version of VSCode and installing only the jupyter
extension, it actually works!
After some digging, I found that I had set the following shortcut
{
"key": "ctrl+c",
"command": "list.clear",
"when": "listFocus && listHasSelectionOrFocus && !editorTextFocus",
},
Commenting this out, the copying works fine.
So it seems that inside the interactive window, listFocus && listHasSelectionOrFocus
is true
.
Applies To
What happened?
Steps:
Untitled-1
editor is open)Jupyter: Create new interactive window
print("hello")
in interactive windowhello
in interactive window output and press Ctrl+CUntitled-1
editor or in the interactive window cell (or anywhere else)I would expect that string
hello
is pasted, but instead, whatever was in clipboard before is inserted.Remarks
Copy Cell Output
works, but this is not a good workaround, since it copies the whole cell, not only the selectionVS Code Version
Version: 1.93.1 Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.93.1 Chrome/124.0.6367.243 Electron/30.4.0 Safari/537.36
Jupyter Extension Version
v2024.8.1
Jupyter logs
Coding Language and Runtime Version
Python v3.12.3
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local