Data Science Jumpstart with 10 Projects Transcripts
Chapter: Welcome to the Course
Lecture: How to use Jupyter

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In this video I want to give you a quick overview about how to use Jupyter. Here's Jupyter running locally.
0:08 In short, each of these little boxes is what's called a cell. I can navigate through them with the up and down arrow.
0:16 I can create a new cell by hitting B. B stands for below. Create a cell below. I can delete that cell by hitting DD.
0:24 I can create a new cell by hitting A for above. This is a modal environment.
0:32 Right now I'm in what's called command mode, so I'm just navigating through the cells. If I want to edit this, I need to go into edit mode.
0:38 I hit enter and in JupyterLab you can see that the box around the code is now editable. I can come in here and type code import sys.
0:50 Like that. When I want to run this I just hold down control and hit enter.
0:55 That's kind of it. You need to know how to create cells and you need to know how to run them.
1:01 A couple other things. When a cell is running, this circle up here will be dark. Also this will be filled in with an asterisk.
1:10 When it's finished it will put in a number here. You can do other things. You can make new cells that are markdown cells as well.
1:19 We're not going to be really getting into that here, but if I'm in command mode and I hit M this changes this to a markdown cell.
1:25 Now if I say import sys here and run it, it prints it as HTML instead of code.
1:33 If you happen to convert something to markdown and you want to change it back, you can hit Y and that will change it back to a code cell.
1:39 If you need to do anything else, you've got a bunch of commands at the top here.
1:44 One of the ones that hopefully you won't need to use but you might is interrupting the kernel. That stops the current running cell.
1:50 If for whatever reason it won't stop, you can say restart with 00 or you can hit this menu item up here.
1:58 This was a very brief introduction, but as you watch me use Jupyter in the course,
2:04 you'll see some of the commands and things I do, and I'll explain how I'm doing that through the course.


Talk Python's Mastodon Michael Kennedy's Mastodon