Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Today, we’re going to talk about keyboard shortcuts in Jupyter Notebook. Using these shortcuts can make you much more efficient. Can anyone guess what a shortcut might do?
Maybe it helps to run code without clicking a lot?
Exactly! For instance, using Shift + Enter will run your current cell and move to the next one. Can anyone remember that by using a mnemonic?
How about 'Shift to the next run'?
That's a great mnemonic! It connects shifting and running your code. Now, what about running a cell without jumping to the next?
Isn't that Ctrl + Enter?
You got it! It's a way to test your code and stay put.
Now let's go over how to manage your cells. If you want to add a new cell above the current one, what shortcut would you use?
I think it's A.
Correct! And if you want to add it below?
B to add below!
That's right! These shortcuts help you organize your work efficiently. And if I wanted to remove a cell?
Double press D!
Exactly! Just remember, it's D, D for delete.
Next, let’s cover converting cell types. Who can tell me how to change a code cell into a Markdown cell?
M, right?
Perfect! And if I need to convert it back to a code cell?
That would be Y.
Yes! These conversions allow you to document your code effectively with formatted text.
So, we can mix code and text easily!
Exactly! It's all about making your notebook clear and informative.
Let’s recap what we’ve learned about keyboard shortcuts today. What shortcuts do we use to add cells?
We use A and B!
And what about executing code?
Shift + Enter to run and move, and Ctrl + Enter to run and stay.
Right! And to delete a cell?
Press D twice!
Great job! Master these shortcuts, and you'll be much more efficient in Jupyter Notebook.
Shift to run, Ctrl to stay, A for above, B for the play.
In the land of Jupyter, there lived a wizard named Shift who could run spells and glide swiftly to new cells. His friend, Ctrl, loved staying put and double D was a dragon that would quickly erase mistakes.
Sile at Ctrl's Alphabet is the secret to managing notebooks: Shift (run), Ctrl (do), A (above), B (below), Delete (D, D), Markdown (M), and Code (Y).
RUN ABCD: Run (Shift + Enter), Up (A), Next (B), Delete (D), Convert Markdown (M), Code (Y).
Term
Shift + Enter
Click to flip
Term
Ctrl + Enter
Click to flip
Term
A
Click to flip
Term
B
Click to flip
Term
M
Click to flip
Term
Y
Click to flip
This section outlines essential keyboard shortcuts in Jupyter Notebook to enhance productivity.
In this section, we explore crucial keyboard shortcuts in Jupyter Notebook which can significantly boost efficiency when coding. These shortcuts streamline the process of navigating cells, running code, and managing notebook content effectively.
In Jupyter Notebook, keyboard shortcuts are indispensable tools that help users code more efficiently and effectively. This section covers several key shortcuts that every Jupyter user should be familiar with to enhance their productivity. The essential shortcuts include:
Mastering these shortcuts empowers users to navigate and manipulate their notebooks quickly, reducing time spent on repetitive tasks and improving the overall coding experience.