We're trying to make this interactive; if you're on desktop, fork this project and follow along: notebooks.ai/rmotr-curricul…
✅ Words with *stars* are concepts.
✅ Words with [brackets] are keystrokes.
👇👇👇👇👇
A Jupyter Notebook is an interactive code environment. It supports multiple languages, but the most common one is Python 🐍. We write code in *cells*, and the execution provides immediate feedback 🏃♀️:
✍️ Edit mode: To write code.
⚡️ Command mode: run commands (this thread)
It's easy to differentiate them:
* In command mode ⚡️ the cell is greyed out
* In edit mode ✍️ the cursor is blinking
* The [ESCAPE] key to go to ⚡️ command mode
* The [RETURN] key to go to ✍️ edit mode.
The following tweets assume you're in ⚡️ command mode (make sure you hit that [ESCAPE] Key).
👇 Shortcuts Reference 👇
On ⚡️ command mode, hit:
* [UP] arrow key to navigate to cells above 👆
* [DOWN] arrow key to navigate cells below 👇
(If you're a vim user, you can also navigate with [J] & [K])
* Press [A] to create a cell "[A]bove" the current selected cell 👆
* Press [B] to create a cell "[B]elow" the current cell 👇
Use the [UP] and [DOWN] arrow keys to move to the cell that you want to delete and hit the [D] key *2 times*. You have to chain the key presses quickly: [D] [D]
Did you incorrectly delete a cell 😱? Don't worry! You can just undo that action.
✨ To undo your previous command, use the [Z] key ✨
(To remember this shortcut, think about ctrl+[Z])
(this works on both edit ✍️ and command ⚡️ modes)
To execute code, keep the [CTRL] key pressed, and hit the [RETURN] key. The shortcut is: [CTRL + RETURN]
Extra 🍰: use [SHIFT + RETURN] to execute the cell and navigate to the cell below.
On ⚡️ command mode, hit the [C] key to [C]opy a cell. Navigate to the position you want to paste it and hit the [V] key. It'll be placed below.
(remember this command because of ctrl+c & ctrl+v).
On ⚡️ command mode:
* Hit the [M] key to switch to [M]arkdown mode 📝.
* Hit the [Y] key to go back to p[Y]thon code 🐍.
Did you get stuck on an infinite loop 😵?
Hit the [I] key two times to [I]nterrupt the kernel. Chain the two key presses quickly: [I] [I]
(similar to the delete command we saw before).
Sometimes, there's no other way than just restarting the whole kernel. Similar to Interrupt, hit the [0] (zero) key two times quickly: [0] [0] (again, that's a zero).
(this is an less known feature 💎)
Select the cells that you want to merge and, while maintaining [SHIFT] pressed, hit the [M] key: [SHIFT + M]
Isn't that amazing? 🍰