Getting started with Dask Transcripts
Chapter: Setup to follow along
Lecture: Running JupyterLab

Login or purchase this course to watch this video and the rest of the course contents.
0:00 After the environment is done installing, we need to activate it. To do so, we can follow this instruction that the installer
0:08 has provided for us up here. So just type in conda activate talkPython-dask. You can see that on the left hand side at the beginning of the line,
0:19 the environment name now appears instead of base. Okay. We're ready to start jupyter lab. After typing jupyter lab into the console,
0:29 we'll just wait for it to start. It will automatically open a browser window for us and show us our repository.
0:36 JupyterLab starts in the directory from which it is launched in the console.
0:41 We're in the course introduction-to-dask and we need to open the first notebook which
0:45 is the 00-setup.ipynb. Once we're in, we see a typical JupyterLab window where on the left hand side we have the utility bar and in the main window
0:55 we have notebooks. We also have access to a launcher which allows us to create new notebooks, new consoles, terminals,
1:01 files and so forth. Let's go back to the setup notebook. A notebook consists of cells,
1:07 which can be Markdown cells like this one here, which provide rich textual representation for can contain images, links, headings.
1:15 It really helps with making the whole notebook feel like a story, like a like a book or like a journal. Then we see code cells which also have output.
1:26 For example, running this cell would provide us with an output. First, actually we need to import a function that this cell uses.
1:34 Then we can run it right here. These two functions take two minutes and to run the cell we just need to press Shift + Enter or Ctrl + Enter.
1:43 And we've got the result. You can see JupyterLab features
1:46 syntax highlighting and the interactive environment like, that allows us to move cells around. So if I wanted to, I could move those cells up and down.
1:55 I can also copy and paste cells. It's a very very nice working environment, especially for data science and for interactive workloads.
2:03 Let's explore setting up a variable and printing it. So jupyter cells by default, print out the value of the variable that is stated in the last line.
2:13 That's an easy way to get to know what is in a particular variable. I can add a cell, just see what is inside the variable a, I can see that's 11,
2:21 which makes sense, 10 plus one. Before we go, let's just have a look at keyboard shortcuts. So those are very very useful,
2:29 they accelerate your work. You can run cells by pressing this play button up here in the top bar on the notebook screen.
2:37 You can also add cells through there and by pressing the plus, use the copy, cut and paste, you can also restart the notebook kernel.
2:45 But a lot of these activities can be accomplished by keyboard shortcuts. So for example, "A" and "B" are for inserting cells, "M" and "Y" is for
2:54 switching cells from Markdown to code and vice versa. Of course you can run cells as well with Shitf + Enter, Ctrl + Enter or even Alt + Enter.
3:04 All of those are variations, you can read more about those in the help. It's time well spent getting to know keyboard shortcuts for JupyterLab.
3:12 As for the exercises in this, in this course, every notebook will have those scattered around just so the experience of
3:19 learning is deeper. We encourage you to always spend the time to try to exercise
3:24 and ideally make the exercise even richer on your own, that will unleash your creativity, it will make you understand the framework deeper.
3:31 Please try that whenever you can, it will be very worth your while. At this point, just to let you know the format,
3:38 questions will be written in this format and we'll invite you to type in your answer and then hidden with this ellipsis,
3:44 there will be a cell with an answer that we provided for you, which you can check against. So before you open that ellipsis,
3:51 make sure to give it an honest try or if you don't have time, just go right to the answer, be informed through that. Great.
3:58 By the way, if you want to collapse the cell, you can do so as well by pressing on this blue bar here, you can compress and decompress cells.
4:06 Like I said before, it's a fantastic environment to work in. You can have multiple notebooks running at the same time,
4:12 you can have multiple tabs, arrange them as you wish.
4:15 If this is your first foray into JupyterLab, I hope you enjoy it very much and have fun with the course.


Talk Python's Mastodon Michael Kennedy's Mastodon