
It's a useful habit to get in to doing and doesn't affect the operation of the shortcuts in any way except to ensure that you're in the correct mode before they're run. I have pre-pended each of the below commands with the Escape key just as a reminder that you need to be in Command mode before running them.

Shift M merge selected cells into one cell Shift Enter run the contents of cell and move to the cell belowĬTRL c/x/v copy/cut/paste text operations in the cellĪLT Left/Right Arrow goto beginning/end of the current line in the cellĬTRL Home/End goto first/last character of the cellĬTRL dedent selected or current line in a cellĬTRL / comment/uncomment selected lines in a cell Here are what I consider to be the most useful keyboard shortcuts.ĬTRL Enter run the contents of cell and stay in the cell To switch from edit mode to command mode you should press the Escape (ESC) key first. In edit mode the current cell has a blue border around it. You know when you're in command mode since the current cell will have a green border around it.

When entering keyboard shortcuts, you should remember that Jupyter has two modes of operation, command mode and edit mode. We will be talking about keyboard and magic shortcuts. The answer is yes there is and they are not that hard to find using the Help system but I thought it might be useful to bring the most common and useful of them together in one short article.
#Jupyter notebook shortcuts insert cell how to
I think it’s fair to say that Jupyter notebooks are fast becoming the de-facto tool of choice for many data engineers, data scientists and even software developers for quickly setting up proof-of-concept data wrangling jobs or even as a full-blown development and data analysis environments. Almost uniquely, a Jupyter Notebook lets you code, analyse, document and visualise your data and data processing all in one place, right there in a browser window.Īs you use Notebooks for any length of time, you’ll find yourself typing in the same commands over and over again and you might start thinking if there are any tips and tricks available on how to be even more productive using them.
