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

Multi-line commenting shortcut key Ctrl + / (slash) works only intermittently (Jupyter Notebook 6) #14818

Closed
dinohsu1019 opened this issue Jul 12, 2023 · 2 comments
Labels
bug status:Duplicate status:Needs Triage Applied to new issues that need triage

Comments

@dinohsu1019
Copy link

Description

Mark multiple lines and press Ctrl + / (slash) toggles commenting and uncommenting, but only intermittently. After a moment, it stops working, and the Ctrl + / comes out with three-dots (...), which replace the whole thing. After another moment, it suddently starts working again. Unfortunately, I failed to figure out how to reproduce the problem effectively (don't know the rule).

Reproduce

Unfortunately, I failed to figure out how to reproduce the problem effectively (don't know the rule).

  1. Open an ipynb file and do editing.
  2. Mark multiple lines with mouse (selecting multiple lines with left button and holding it moving) or with both keyboard (cursor placed at the beginning of the first line to mark, holding shift key, and press the down key multiple times and release the shift key)
  3. Click Ctrl + / (slash)
  4. See ... (three dots) replacing the whole thing selected. (but intermittely back to normal with commenting and uncommenting)

Expected behavior

Commening (add the # + space at the beginning of lines) and uncommenting (remove the # + space at the beginning of the lines) of the multiple lines of code selected.

Context

Editing an opened ipynb file.

  • Operating System and version: Windows 11 Home Edition
  • Browser and version: Chrome (latest version) 版本 114.0.5735.199 (正式版本) (64 位元)
  • JupyterLab version: not yet using Jupyter Lab,
  • Server Information:
    You are using Jupyter Notebook.

The version of the notebook server is: 6.5.2
The server is running on this version of Python:
Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)]

Current Kernel Information:
Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)]

Troubleshoot Output
Please see the attach file for the output. 
Command Line Output
I am not using JupyterLab yet, only Jupyter Notebook.
[jupyter troubleshoot output.txt](https://github.com/jupyterlab/jupyterlab/files/12025410/jupyter.troubleshoot.output.txt)
Browser Output
Sorry, this seems not applicable.
@welcome
Copy link

welcome bot commented Jul 12, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Jul 12, 2023
@JasonWeill
Copy link
Contributor

This is a duplicate of jupyter/notebook#6060. In the future, you can open Jupyter Notebook issues not found in JupyterLab at https://github.com/jupyter/notebook/issues/ . Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Duplicate status:Needs Triage Applied to new issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants