I’ve previously worked a while on v6, but I find the environment unfamiliar as many shortcuts that were practical don’t seem present by default.
Such shortcuts include navigation through cells (UP and DOWN arrows), starting to edit cell focus is on (enter), switching cell format (Esc + m/c/r).
After checking the builtin cheatsheet for shortcuts, it looks like those I’m trying aren’t listed. Is that normal? Were those shortcuts removed? Did I miss something somehow?
Here are the steps I followed to set up my environment and encountered the problem :
Creating a virtualenv with Python3 : mkvirtualenv python3 --python=python3 myvirtualenv.
Installing notebook once the virtualenv is active with : pip install notebook.
Running notebook with jupyter notebook.
Starting a new notebook in the page step #3 opened in my browser with default kernel (Python3, ipykernel).
Manually creating a few cells and content.
Trying shortcuts mentionned above and noticing they don’t work.
Some of these are highlighted under ‘Keyboard Navigation’ on the current Jupyter Notebook documentation here. And so if those don’t work it may be other issues in your install perhaps?
Have you tried a different browser with Jupyter?
Are you saying that the JupyterLab version will affect the shortcuts over in Jupyter Notebook 7+? Do you have a reference for this that we can add here.
I came here from this stackoverflow question I typed. I’m having a very similar issue. I was editing a notebook and randomly keyboard shortcuts stopped working. I use Anaconda to manage my Jupyter installation. For clarity, older versions and JupyterLab’s keyboard shortcuts work just fine!
Hello,
Actually, I tried the same steps from my post from scratch and actually got this specific version this time. (And yes, it works with shortcuts now).
I don’t think that the issue lies in JupyterLab 4.1.0. I was using 4.0.11 when I ran into the issues. Plus I’ve been using Jupyter Notebook 7 for about a month ish when I ran into the issues. I did downgrade, however to JLab 4.0.8 and now it works! I wonder if there was some dependency that downgrading helps fix this issue.
I’ve had the same problem: I’ve been using Jupyter for many years, and Notebook 7 for many months. A week or two ago, I upgraded to the latest versions of JupyterLab and Notebook, and suddenly all of these keyboard shortcuts went away. I checked on several computers and several browsers – and when I checked the list of shortcuts, they were gone. I also tried, unsuccessfully, to re-add them via the settings.
I’m also puzzled (and a bit frustrated) by these changes.
If you open JupyterLab and got to Settings Editor → JSON Settings Editor → Keyboard Shortcuts, what is in the JSON in the user panel? Can you paste it?
As for the JSON settings in JupyterLab, I wanted to include them, but they’re too long to put into Discourse. Any suggestions?
I should note that the problem might be based on JupyterLab, but it doesn’t express itself when creating a notebook within JupyterLab. Rather, it only expresses itself when I run jupyter notebook from the command line, bringing up Notebook 7.
In the lab, I can create a new notebook and then:
ESC (put into command mode)
m (markdown mode)
ENTER (go into edit mode)
Type some markdown, press shift+ENTER, it shows up
press ESC and b, and a new cell appears below.
In Jupyter notebook, by contrast, I cannot switch into command mode with ESC nor edit mode with ENTER. I cannot copy, cut, or paste cells with c, x, and v. I cannot switch into markdown mode with m, or code mode with y.
I’ll gladly share preferences (global or user for lab or notebook), if there’s a good/easy way to do that.
I was searching through GitHub issues, trying to figure out if this had been identified. I should have come here first; your help was speedy and so so useful.