Vscode-jupyter: Paste in Jupyter Notebook makes a copy to the Terminal window

Created on 17 Jul 2020  路  10Comments  路  Source: microsoft/vscode-jupyter

Bug: Notebook Editor

Steps to cause the bug to occur

  1. click to focus the vscode built-in terminal window

  2. focus back to notebook

  3. copy & paste

Actual behavior

paste to both notebook and terminal

Expected behavior

paste to only notebook

Jupyter and/or Python environment

_Please provide as much info as you readily know_

  • Jupyter server running: Local
  • Extension version: 2020.7.94776
  • VS Code version: 1.47.2
  • Setting python.jediEnabled: false
  • Setting python.languageServer: Microsoft
  • Python and/or Anaconda version: 3.8.3
  • OS: Windows 10
  • Virtual environment: conda

Developer Tools Console Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

bug

Most helpful comment

Thanks for the bug report, I was able to reproduce this, and it impacts both our notebook and the interactive window. It seems that the terminal is not aware that it no longer has focus when a webview is focused. We'll discuss this at our upcoming triage.

All 10 comments

Thanks for the bug report, I was able to reproduce this, and it impacts both our notebook and the interactive window. It seems that the terminal is not aware that it no longer has focus when a webview is focused. We'll discuss this at our upcoming triage.

@rchiodo , please try and find a minimal repro and create a VS Code bug.

Thank for reporting this. I have the same issue.

I have found a similar (related ? ) issue.

  • My VSC is not starting with a Terminal pane opened ( I am sure it used to by default?).
  • If I try and copy an error message (or any other text) in the Python Interactive pane with Ctl+C, then nothing is copied.
  • If I then open a Terminal pane (Ctrl+` ), then I can copy (Ctl+C) from the Python Interactive window and paste to wherever (e.g. Notepad).
  • If I then close the Terminal pane, then (Ctl+C) from the Python Interactive window still works.
  • If I close VCS and re-open, then I can repeat the above sequence (i.e. it stops working again until a Terminal Pane is opened).

....hope this helps resolve this issue and/or provide an interim workaround for the other "Copy/Paste breaks issues"......

Version: 1.47.2 (user setup)
Commit: 17299e413d5590b14ab0340ea477cdd86ff13daf
Date: 2020-07-15T18:22:06.216Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041

Another issue I reported (#13042) was transitively marked as a dup of this one (via microsoft/vscode-jupyter#767) but these seem to be separate (perhaps related?) issues.

So, does anyone know how to deal this problem or bug? If possible, please comment me?

See workaround in linked issue microsoft/vscode-jupyter#854. Set the focus to Terminal before copying from output.

@luomou97 @lleeoo another workaround is to select and drag&drop to another editor as suggested by @dostov

This is fixed in upstream.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jediyoda36 picture jediyoda36  路  4Comments

SimonCrios picture SimonCrios  路  3Comments

qdlmcfresh picture qdlmcfresh  路  3Comments

AlbertDeFusco picture AlbertDeFusco  路  4Comments

ashtou picture ashtou  路  3Comments