WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.710 --> 00:00:12.330
Hi. In this video we will run and export our notebook via terminal.

1
00:00:13.450 --> 00:00:17.240
We'll use our newly created Anaconda environment for this, uh,

2
00:00:17.240 --> 00:00:22.120
which basically contains all packages needed to execute our notebook and

3
00:00:22.180 --> 00:00:26.600
export it in specific versions, which I test it for functionality,

4
00:00:26.650 --> 00:00:27.760
which I want to show you.

5
00:00:30.030 --> 00:00:33.210
Please rename the notebook to module zero four working,

6
00:00:33.670 --> 00:00:38.140
or whatever name you like. And let's go to our terminal.

7
00:00:43.510 --> 00:00:48.100
We'll use, uh, the newly created environment and, uh, let's activate it.

8
00:00:48.280 --> 00:00:52.500
If you do not have activated, please activate it with conduct activate command.

9
00:00:55.900 --> 00:01:00.840
Now we will do the export of our notebook to H T M L with embedded

10
00:01:00.890 --> 00:01:04.280
table of contents, embedded pictures and charts as well.

11
00:01:04.980 --> 00:01:07.820
The library, which, uh,

12
00:01:07.850 --> 00:01:10.460
does what we need is called and B convert.

13
00:01:11.770 --> 00:01:12.870
And this is the command

14
00:01:18.900 --> 00:01:22.460
Jupyter and B convert parameter.

15
00:01:22.520 --> 00:01:27.420
No input means that we do not want to show in the exported file

16
00:01:27.580 --> 00:01:30.180
R code. We want only the output of the cells

17
00:01:32.550 --> 00:01:37.400
parameter to H T M L. Embed means that we want in our,

18
00:01:38.020 --> 00:01:43.000
uh, exported format to be H T M L with embedded charts and pictures.

19
00:01:46.080 --> 00:01:51.080
We'll use the talk two, uh, template for this. Uh,

20
00:01:51.100 --> 00:01:53.880
the talk two is the name of the file in the directory,

21
00:01:53.880 --> 00:01:58.640
where is the notebook and it enters the embedding of the table of contents.

22
00:02:00.790 --> 00:02:03.290
And the last parameter is the name of our own book

23
00:02:06.550 --> 00:02:07.383
has run it.

24
00:02:12.140 --> 00:02:14.400
The conversion was done. Uh,

25
00:02:14.700 --> 00:02:19.080
one thing to mention that in order for this command to work, uh,

26
00:02:19.080 --> 00:02:23.920
another file which needs to be present in the directory is the Plotly JSS

27
00:02:24.000 --> 00:02:27.120
file, which is used to embed the Plotly charts.

28
00:02:28.890 --> 00:02:33.750
So altogether two files, Plotly js and talk to T P L.

29
00:02:36.180 --> 00:02:37.210
Let's open that file.

30
00:02:42.270 --> 00:02:45.170
The table of contents is embedded and is working.

31
00:02:46.190 --> 00:02:47.660
The code is hidden.

32
00:02:54.080 --> 00:02:58.970
Plotly charts works as well. Pictures are embedded.

33
00:02:59.980 --> 00:03:04.530
And also seaborn chart and Gigi plot chart as well.

34
00:03:11.970 --> 00:03:16.350
Now let's convert the notebook, uh, to the reveal presentation.

35
00:03:17.570 --> 00:03:20.530
I will show it to you on that notebook, which I already prepared.

36
00:03:21.680 --> 00:03:23.140
The command is very similar.

37
00:03:23.520 --> 00:03:26.940
We just change the parameter two to slides.

38
00:03:46.130 --> 00:03:49.690
Okay, it's done. I show you that file already before.

39
00:03:49.910 --> 00:03:51.570
So let's go to the next step.

40
00:03:54.010 --> 00:03:56.830
And now let's, uh, just execute the notebook.

41
00:04:02.320 --> 00:04:05.340
We change the parameter two to notebook

42
00:04:07.140 --> 00:04:09.200
and add another parameter. Execute.

43
00:04:22.030 --> 00:04:25.760
This will take some time because we are executing the whole notebook.

44
00:04:35.930 --> 00:04:40.740
It's done and we see that it was executed and saved into a new notebook

45
00:04:40.740 --> 00:04:45.060
called Module zero four working NB convert i n b.

46
00:04:46.700 --> 00:04:47.080
You see,

47
00:04:47.080 --> 00:04:51.600
this way we are able to execute the notebook without using the Jupyter client

48
00:04:51.870 --> 00:04:54.480
like Jupyter Notebook app or Jupyter app.

49
00:04:55.690 --> 00:04:59.870
The NB Convert supports also, um, many other, uh,

50
00:04:59.870 --> 00:05:02.110
conversions like P D F, and others.

51
00:05:04.960 --> 00:05:05.820
In our next video,

52
00:05:06.160 --> 00:05:10.980
we will learn how to parameterize the notebook and how to run and export it

53
00:05:10.990 --> 00:05:12.260
using Python code.
