Jupyter Notebook Keyboard Shortcuts
Jupyter Notebook is a web-based interactive development environment (IDE) that enables users to create and share documents that contain live code, visualizations, and explanations. It allows for easy organization and execution of code, with the ability to add in markdown for further documentation. It supports multiple programming languages and is widely used by data scientists, researchers, and engineers for data analysis and scientific computing. Jupyter Notebook is an open-source tool that can be run on a local machine or in the cloud.
Shift + Enter: Run the current cell and move to the next one.
Ctrl + Enter: Run the current cell and stay on the same cell.
Alt + Enter: Run the current cell and insert a new cell below it.
A: Insert a new cell above the current cell.
B: Insert a new cell below the current cell.
X: Cut the current cell.
C: Copy the current cell.
V: Paste the current cell.
Z: Undo the last action.
Y: Change the cell type to code.
M: Change the cell type to markdown.
D + D: Delete the current cell.
Shift + Tab: Show the documentation for the current function.
Ctrl + Shift + -: Split the current cell at the cursor.
Ctrl + Shift + P: Show the command palette.
Ctrl + Shift + Up/Down: Select multiple cells.
**Ctrl + / **: Comment/uncomment the selected lines
Shift + Tab: Show the documentation for the current function.
Ctrl + Shift + -: Split the current cell at the cursor.
Ctrl + Shift + P: Show the command palette.
Ctrl + Shift + Up/Down: Select multiple cells.
Shortcuts are important because they allow you to perform actions quickly and efficiently, without having to navigate through menus or use a mouse. They can save you time and increase your productivity by allowing you to quickly access frequently used features and commands. Additionally, by using shortcuts you can keep your hands on the keyboard, which can help prevent repetitive stress injuries and improve your typing speed. In the context of Jupyter Notebook, shortcuts are particularly helpful because they allow you to quickly navigate and manipulate cells, run code, and perform other common tasks without having to use the mouse or navigate through menus.