WEBVTT - This file was automatically generated by VIMEO

0
00:00:10.760 --> 00:00:11.000
Hi,

1
00:00:11.000 --> 00:00:15.940
and welcome to our fourth module where we will start finally to work with the

2
00:00:16.140 --> 00:00:19.570
notebook. To introduce our module,

3
00:00:20.270 --> 00:00:23.170
we will learn how to work with cells and the kernel.

4
00:00:24.420 --> 00:00:29.040
We will learn how to write Latinx equations and how to write markdown.

5
00:00:30.660 --> 00:00:34.050
We'll execute r and Python in same notebook.

6
00:00:35.490 --> 00:00:40.400
We'll explore options, how to execute the notebooks and how to export them.

7
00:00:41.960 --> 00:00:44.590
We'll also write a simple script, uh,

8
00:00:44.960 --> 00:00:47.750
where we will parameterize the notebook.

9
00:00:49.370 --> 00:00:54.080
We'll learn how to debug Jupyter notebooks and how to embed

10
00:00:54.080 --> 00:00:55.720
interactive features into them.

11
00:00:57.190 --> 00:01:01.140
We'll create an interactive dashboard with Walla Library

12
00:01:02.880 --> 00:01:05.580
and we will learn how to share our notebooks.

13
00:01:07.140 --> 00:01:11.880
All of these will be done on a real data set where we will do a simple

14
00:01:11.880 --> 00:01:13.160
linear regression model,

15
00:01:13.940 --> 00:01:18.480
and we will make a slight introduction to libraries like Pandas,

16
00:01:18.900 --> 00:01:21.080
Plotly, sticky Learn, and Seaborn.

17
00:01:23.040 --> 00:01:27.380
In this video we will explore first the main panel and the toolbar.

18
00:01:28.040 --> 00:01:31.020
Now let's go to our EPO folder and to our fourth module.

19
00:01:33.340 --> 00:01:37.040
We see here a lot of files which we will need, uh, throughout this module.

20
00:01:38.100 --> 00:01:42.900
I also created example notebook, which you can explore and which has, uh,

21
00:01:42.960 --> 00:01:47.930
all of the content which we will create step-by-step. This is this one.

22
00:01:50.880 --> 00:01:51.860
During this module,

23
00:01:52.240 --> 00:01:56.860
we will install a couple of packages and we will create a new Anaconda

24
00:01:56.860 --> 00:01:57.900
environment as well.

25
00:01:59.060 --> 00:02:03.360
If you mess something up and you will need to recreate your container.

26
00:02:04.720 --> 00:02:09.450
Here is a best script which you can run to perform all the

27
00:02:09.570 --> 00:02:14.010
steps, which we have done so far in previous modules, and, uh,

28
00:02:14.010 --> 00:02:17.010
which we will do in this module as well.

29
00:02:17.790 --> 00:02:22.330
So we have the same state of the container, like packages, extensions and so on.

30
00:02:23.560 --> 00:02:24.580
We can check it briefly.

31
00:02:29.040 --> 00:02:33.900
We see that these steps we have done in our previous module and

32
00:02:33.900 --> 00:02:36.740
these remaining steps we'll do in this module.

33
00:02:39.010 --> 00:02:43.310
To run this script, use this command be and the file name.

34
00:02:45.690 --> 00:02:50.650
I will not run this script now because we'll perform the

35
00:02:50.650 --> 00:02:52.890
steps, uh, in this module one by one.

36
00:02:58.810 --> 00:03:03.570
Now let's open, uh, this notebook, module four I and B.

37
00:03:09.420 --> 00:03:10.253
Okay, it's opened.

38
00:03:14.650 --> 00:03:17.070
Now let's explore the menu bar.

39
00:03:20.940 --> 00:03:21.800
In the file tab,

40
00:03:22.260 --> 00:03:27.160
we are able to perform all the necessary operations with the notebook. Uh,

41
00:03:27.190 --> 00:03:31.150
like creating the notebook, open notebook,

42
00:03:31.610 --> 00:03:35.390
we can making a copy of the notebook, saving the notebook.

43
00:03:36.300 --> 00:03:37.320
We can rename it.

44
00:03:38.560 --> 00:03:41.820
We can also reword the notebook to specific checkpoint

45
00:03:43.340 --> 00:03:44.760
and what is interesting,

46
00:03:45.180 --> 00:03:50.000
we can download the notebook in a specific format like P D

47
00:03:50.120 --> 00:03:52.160
F or H T M L. For example,

48
00:03:58.290 --> 00:03:59.310
in the edit tab,

49
00:03:59.610 --> 00:04:04.150
we can do all of the operations with cells like cutting them,

50
00:04:04.380 --> 00:04:08.350
copying the cells, fasting or delete the cells.

51
00:04:09.050 --> 00:04:11.070
We can split or merge the cells.

52
00:04:11.930 --> 00:04:14.450
We can move the cells through the notebook.

53
00:04:16.040 --> 00:04:18.220
We can also edit notebook, metadata,

54
00:04:20.010 --> 00:04:22.670
and we can also work with cells attachments

55
00:04:26.640 --> 00:04:27.473
in the view tab.

56
00:04:27.720 --> 00:04:32.380
We can toggle heater or toolbar to have more space or line numbers.

57
00:04:33.160 --> 00:04:37.440
We can also turn on or off cell toolbar.

58
00:04:38.260 --> 00:04:40.520
We will work with the slideshow toolbar.

59
00:04:43.320 --> 00:04:47.460
We can insert the cells above or below current cell.

60
00:04:51.350 --> 00:04:54.410
We can run one cell or multiple cells,

61
00:04:54.950 --> 00:04:59.850
or we can run a whole notebook or we can execute just the parts of

62
00:04:59.850 --> 00:05:04.410
the notebook. We can change the cell type.

63
00:05:05.750 --> 00:05:10.020
We'll work just with two cell types, uh, the code and markdown cell.

64
00:05:13.540 --> 00:05:18.120
And we can also toggle or clear the outputs of current

65
00:05:18.270 --> 00:05:21.480
cell, or we can do the same for whole notebook.

66
00:05:26.930 --> 00:05:30.950
In the kernel tap. We can make all the operations with the kernel,

67
00:05:31.300 --> 00:05:36.280
like stopping the kernel, restart the kernel. We can,

68
00:05:36.300 --> 00:05:39.200
uh, clear output after restarting the kernel,

69
00:05:39.820 --> 00:05:43.720
or we can run the whole notebook. After restarting the kernel.

70
00:05:45.190 --> 00:05:47.610
We can also change the kernel in

71
00:05:51.480 --> 00:05:55.920
navigate up. We see basically the same as in a table of contents.

72
00:05:56.840 --> 00:06:01.560
Uh, but the table of contents has the advantage that it is embedable

73
00:06:02.030 --> 00:06:04.760
into P D F files or H T M L files.

74
00:06:10.760 --> 00:06:13.300
Do not worry about widget tab. Uh,

75
00:06:13.440 --> 00:06:17.980
we will explain it more when we will work with the Jupyter Widgets and

76
00:06:20.380 --> 00:06:21.213
the health tab.

77
00:06:22.350 --> 00:06:25.920
Here you can find the references to most used, uh,

78
00:06:25.920 --> 00:06:27.960
Python libraries in Jupyter.

79
00:06:29.420 --> 00:06:34.080
And also we can edit or see the keyboard shortcuts.

80
00:06:38.560 --> 00:06:43.420
We can see here that the keyboard shortcuts are for comm out mode or

81
00:06:44.520 --> 00:06:46.820
or edit mode. What is the difference

82
00:06:55.530 --> 00:06:59.820
when you edit the cell, you are in the edit mode. You can see it also here.

83
00:07:02.110 --> 00:07:06.060
Now, when you press escape, you are in the command mode.

84
00:07:06.160 --> 00:07:10.540
So now I can, for example, invoke the popup for, uh,

85
00:07:11.120 --> 00:07:13.610
the shortcuts with H key,

86
00:07:17.190 --> 00:07:21.530
or I can invoke the popup for a command palette with P

87
00:07:25.200 --> 00:07:26.340
or in the command mode,

88
00:07:26.700 --> 00:07:31.500
I can basically work with the cell or kernel,

89
00:07:31.570 --> 00:07:35.060
like, uh, copy the cell plastic dimens on. We will see that later.

90
00:07:42.370 --> 00:07:47.180
Here we see a button thrust it. What does it mean?

91
00:07:48.920 --> 00:07:53.810
The button trusted or not trusted, is for security reasons.

92
00:07:54.230 --> 00:07:58.690
And basically when you open some notebook, which was not created by you,

93
00:07:59.240 --> 00:08:02.290
Jupyter by default marks it as not trusted.

94
00:08:02.840 --> 00:08:07.620
That means it'll not execute any JavaScript code in the notebook

95
00:08:07.690 --> 00:08:10.820
because it can contain some malicious code.

96
00:08:12.110 --> 00:08:14.160
When you click to trust the notebook,

97
00:08:14.330 --> 00:08:18.380
JavaScript in the notebook will be executed. When you, for example,

98
00:08:18.530 --> 00:08:22.460
open a notebook from another user, which has plotly charts in it,

99
00:08:22.680 --> 00:08:25.540
you will see blank space. It is because of this,

100
00:08:26.700 --> 00:08:30.520
but when you click to trust the notebook, the charts will be generated normally.

101
00:08:34.390 --> 00:08:38.050
And here we have information about our running kernel.

102
00:08:38.830 --> 00:08:42.490
We see that we are currently using the epic kernel.

103
00:08:42.490 --> 00:08:44.650
This is the kernel from the base environment,

104
00:08:45.350 --> 00:08:48.870
and here is the status of the kernel.

105
00:08:49.490 --> 00:08:52.310
It can be busy or idle. Now it's idle.

106
00:09:01.170 --> 00:09:02.910
Now I will execute this cell

107
00:09:04.800 --> 00:09:06.620
and we will see the kernel is now busy.

108
00:09:13.730 --> 00:09:18.110
Regarding notebook toolbar, this is this one with the buttons.

109
00:09:18.650 --> 00:09:23.110
It basically contains the most used, uh,

110
00:09:23.110 --> 00:09:24.750
commands to work with the notebook.

111
00:09:29.280 --> 00:09:32.460
In our next video, we will introduce the dataset.
