WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.690 --> 00:00:12.230
Hi. In this video we'll learn how to work with Jupyter Lab debugger.

1
00:00:14.690 --> 00:00:17.600
Let's go to our Jupyter Lab and let's open the notebook.

2
00:00:17.600 --> 00:00:18.760
In the module five folder,

3
00:00:20.540 --> 00:00:24.830
I'll explain to you what they did in the notebook in our next video into detail.

4
00:00:25.570 --> 00:00:29.390
But for now, let's launch the debugger clicking on this icon.

5
00:00:34.650 --> 00:00:35.483
Okay.

6
00:00:37.090 --> 00:00:41.710
And we see now a new element in each of the cell. Uh,

7
00:00:41.710 --> 00:00:43.470
this is the column with the line numbering.

8
00:00:44.350 --> 00:00:48.340
I could hear a very simple function just for illustration.

9
00:00:49.860 --> 00:00:52.170
Let's execute this and let's, uh,

10
00:00:52.350 --> 00:00:57.330
put a break point in the cell in these two places here and

11
00:00:57.330 --> 00:01:01.440
here. And now, when you execute the cell,

12
00:01:02.450 --> 00:01:04.950
we see that execution has stopped on the break point.

13
00:01:05.580 --> 00:01:07.870
What we can do now,

14
00:01:08.910 --> 00:01:11.570
we can see all the variables and objects.

15
00:01:13.630 --> 00:01:15.650
We see the listed breakpoints,

16
00:01:15.950 --> 00:01:19.130
and also we see where we are in the code.

17
00:01:23.320 --> 00:01:27.940
Now we can go step by step in the code execute line by line.

18
00:01:31.620 --> 00:01:33.360
We can step inside the function,

19
00:01:34.510 --> 00:01:39.170
but this will work only with the functions which you define in the notebook.

20
00:01:40.300 --> 00:01:41.200
We can step out,

21
00:01:45.510 --> 00:01:49.050
we can evaluate an expression, for example,

22
00:01:50.490 --> 00:01:53.050
B shift, enter. We evaluate.

23
00:01:55.530 --> 00:02:00.070
And here in the lock console we see this, uh, expression. We

24
00:02:05.600 --> 00:02:10.520
can stop the code execution and we can continue until the end of

25
00:02:10.520 --> 00:02:11.353
the cell.

26
00:02:14.360 --> 00:02:16.620
We can do the same in the console.

27
00:02:19.730 --> 00:02:21.090
I will just copy this code

28
00:02:25.660 --> 00:02:29.120
and I will set the break point here and here.

29
00:02:32.380 --> 00:02:35.400
And now when we execute the code inside the console,

30
00:02:36.060 --> 00:02:38.000
we are able to use the debugger as well.

31
00:02:41.640 --> 00:02:42.500
In our next video,

32
00:02:43.500 --> 00:02:47.220
I will explain to you what I did in the notebook and we will get, uh,

33
00:02:47.340 --> 00:02:50.180
a little bit, uh, introduction to classification.
