Shortcut
Jupyter Notebook Change Cell to Code Shortcut
The Jupyter Notebook shortcut to change cell to code is Y on Windows. We haven't confirmed a Mac shortcut for this yet.
Quick Answer
- Windows
- Y
- Mac
- Not confirmed yet
- Web
- Y
Jupyter NotebookShortcut
Change Cell to Code
In command mode, changes the selected cell to a code cell.
How to change cell to code in Jupyter Notebook
- Open Jupyter Notebook and go to where you want to change cell to code.
- Press Y on Windows.
Jupyter Notebook Change Cell to Code Shortcut for Windows
Press Y.
Jupyter Notebook Change Cell to Code Shortcut for Mac
We haven't confirmed a Mac shortcut for this yet.
Jupyter Notebook Change Cell to Code Shortcut for Jupyter Notebook Web
Press Y.
Version note: Classic Notebook documentation consulted 2026-10-17; not hands-on tested. Check bindings in your installed version.
Related Keyboard Shortcuts
Frequently asked questions
What is the Jupyter Notebook change cell to code shortcut?
On Windows, press Y.
Is there a Mac shortcut to change cell to code in Jupyter Notebook?
We haven't confirmed a Mac shortcut for this yet.
Does it work in Jupyter Notebook for the web?
Yes: Y.
Official source · How we verify