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

Keyboard shortcuts broken after following internal link #7202

Open
homeworkace opened this issue Dec 27, 2023 · 6 comments
Open

Keyboard shortcuts broken after following internal link #7202

homeworkace opened this issue Dec 27, 2023 · 6 comments

Comments

@homeworkace
Copy link

homeworkace commented Dec 27, 2023

Latest stable version, latest stable Firefox, Python 3.11. All keyboard shortcuts and most other mouse functions are broken. Cells cannot be run by keyboard or mouse. Attempting to duplicate or insert cells create empty ones somewhere unrelated. Attempting to delete these empty cells results in other cells being deleted instead. Resolved with reload.

To reproduce:

  1. Create markdown cell A as such:
This [word](#link) leads to cell B.
  1. Create markdown cell B as such:
<a name = 'link'></a>I am cell B.
  1. Ctrl + Enter both cells.
  2. Double-click on "word" in cell A.
@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to issues that need triage label Dec 27, 2023
@RRosio
Copy link
Collaborator

RRosio commented Jan 2, 2024

Thank you @homeworkace for opening this issue. Could you share which version of Notebook you are using? Do you have any enabled browser extensions that might interfere with content? Also, is this issue present with other browsers?

@RRosio
Copy link
Collaborator

RRosio commented Jan 9, 2024

Hi @homeworkace just following up with you, would you be able to provide the information requested above?

@homeworkace
Copy link
Author

homeworkace commented Jan 10, 2024

Sorry for the inactivity, I'd posted this issue while I was attending to my coursework.

pip freeze shows that I'm using jupyter==1.0.0 and notebook==7.0.6.

I have extensions in Firefox but I don't believe they interfere with the notebook's operation.

  • Adblock Plus does not block any elements.
  • Honey has no integration with Jupyter.
  • Dark Mode is turned off.
  • There are no Tampermonkey scripts active on the notebook URL.
  • My VPN is not turned on.

I will test this in another browser and in another computer today or tomorrow, and will check back again with the results.

Edit: I closed the issue on accident. At the moment I'm still able to reproduce the bug in my current setup by following the steps above.

@homeworkace
Copy link
Author

This is on a clean Firefox instance launched with Selenium. After following the link (see URL bar), I'm unable to run the cell in the middle:
image

On Chrome or Edge this bug does not happen. Using Python 3.12 to launch Jupyter (and using the same instance of Python as the kernel) I get the same results.

@RRosio
Copy link
Collaborator

RRosio commented Jan 16, 2024

Thanks for your reply @homeworkace! I was just able to reproduce this in the latest Firefox standard release, 121.0.1, as well. If I save from the File menu and refresh the page, the commands are back. Below is the output I am seeing in the console. The error message was similar to that reported in jupyterlab/jupyterlab#7412 note: this issue is not present for me in JupyterLab itself.

Cannot execute key binding 'Escape': command 'documentsearch:end' is not enabled. [3301.bundle.js:1:4552](http://127.0.0.1:8888/static/notebook/3301.bundle.js)
Error rendering buttons of the cell toolbar:  TypeError: t.layout is null
   _addToolbar http://127.0.0.1:8888/static/notebook/7386.bundle.js:1
[7386.bundle.js:1:2611](http://127.0.0.1:8888/static/notebook/7386.bundle.js)
Error rendering buttons of the cell toolbar:  TypeError: t.layout is null
   _addToolbar http://127.0.0.1:8888/static/notebook/7386.bundle.js:1
[7386.bundle.js:1:2611](http://127.0.0.1:8888/static/notebook/7386.bundle.js)
Error rendering buttons of the cell toolbar:  TypeError: t.layout is null
   _addToolbar http://127.0.0.1:8888/static/notebook/7386.bundle.js:1
[7386.bundle.js:1:2611](http://127.0.0.1:8888/static/notebook/7386.bundle.js)
Error rendering buttons of the cell toolbar:  TypeError: t.layout is null
   _addToolbar http://127.0.0.1:8888/static/notebook/7386.bundle.js:1
[7386.bundle.js:1:2611](http://127.0.0.1:8888/static/notebook/7386.bundle.js)
Cannot execute key binding 'Shift Enter': command 'notebook:run-cell-and-select-next' is not enabled. 10 [3301.bundle.js:1:4552](http://127.0.0.1:8888/static/notebook/3301.bundle.js)
Cannot execute key binding 'Cmd Z': command 'editmenu:undo' is not enabled. 4 [3301.bundle.js:1:4552](http://127.0.0.1:8888/static/notebook/3301.bundle.js)
Cannot execute key binding 'Escape': command 'notebook:enter-command-mode' is not enabled. [3301.bundle.js:1:4552](http://127.0.0.1:8888/static/notebook/3301.bundle.js)
Cannot execute key binding 'Y': command 'notebook:change-cell-to-code' is not enabled. [3301.bundle.js:1:4552](http://127.0.0.1:8888/static/notebook/3301.bundle.js)
Cannot execute key binding 'Escape': command 'notebook:enter-command-mode' is not enabled. 6 [3301.bundle.js:1:4552](http://127.0.0.1:8888/static/notebook/3301.bundle.js)
Cannot execute key binding 'Shift Enter': command 'notebook:run-cell-and-select-next' is not enabled. [3301.bundle.js:1:4552](http://127.0.0.1:8888/static/notebook/3301.bundle.js)
Uncaught (in promise) Error: CodeMirrorEditor already set.
   setEditor http://127.0.0.1:8888/static/notebook/4131.bundle.js:1
   z http://127.0.0.1:8888/static/notebook/2479.bundle.js:1
2 [4131.bundle.js:1:133181](http://127.0.0.1:8888/static/notebook/4131.bundle.js)
Error rendering buttons of the cell toolbar:  TypeError: t.layout is null
   _addToolbar http://127.0.0.1:8888/static/notebook/7386.bundle.js:1
[7386.bundle.js:1:2611](http://127.0.0.1:8888/static/notebook/7386.bundle.js)
Error rendering buttons of the cell toolbar:  TypeError: t.layout is null
   _addToolbar http://127.0.0.1:8888/static/notebook/7386.bundle.js:1
[7386.bundle.js:1:2611](http://127.0.0.1:8888/static/notebook/7386.bundle.js)

@RRosio
Copy link
Collaborator

RRosio commented Jan 23, 2024

Potentially related issue in JupyterLab: jupyterlab/jupyterlab#15637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants