Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy/pasting from Jupyter Notebook leads to duplicated cells #16351

Open
1 of 2 tasks
AlfredoSandovalx opened this issue Jan 2, 2025 · 1 comment
Open
1 of 2 tasks
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster triage-needed Issue needs to be triaged

Comments

@AlfredoSandovalx
Copy link

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

When I copy code or text from a Jupyter Notebook cell and try to paste it into another panel or extension, it causes duplicated cells to appear in the notebook.

See Sourcegraph cody bug #6200

Steps to Reproduce

  1. Open a Jupyter Notebook in VS Code.
  2. Copy the entire cell contents (code or markdown).
  3. Attempt to paste the content into another panel or external application.
  4. Notice that the notebook cells get duplicated.

Expected Behavior

Copying and pasting from the notebook into another panel/application should not affect the notebook cells. The text should simply paste without duplication.

Actual Behavior

Cells in the notebook get duplicated, and sometimes I need to click off the notebook tab to complete the paste action.

VS Code Version

VS Code version: Cursor 0.43.3 (09a504fa3bdd3caa05bfe01b88bd2b79e283d240, 2024-11-24T21:46:28.029Z)

Jupyter Extension Version

2024.11.0

Jupyter logs

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

Python Extension Version: 2024.23.2024121901.

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

@AlfredoSandovalx AlfredoSandovalx added the bug Issue identified by VS Code Team member as probable bug label Jan 2, 2025
@vs-code-engineering vs-code-engineering bot added the triage-needed Issue needs to be triaged label Jan 2, 2025
@DonJayamanne
Copy link
Contributor

Thank you for filing this issue, does this issue repro with all extensions disabled, including Jupyter extension?

@DonJayamanne DonJayamanne added the info-needed Issue requires more information from poster label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants