WEBVTT

00:04.210 --> 00:05.900
Hi and welcome back to our cost.

00:05.900 --> 00:12.630
So now as we often start the anaconda situation we can open our very first to be the notebook where

00:12.640 --> 00:19.120
we can write and run our Python code and there are actually two ways to open a typical notebook.

00:19.120 --> 00:29.880
So first of all via the anaconda navigator so let's search for the anaconda navigator and you can see

00:29.880 --> 00:30.930
it here as an EP

00:37.630 --> 00:43.430
and opening a tip in a notebook where the anaconda navigators extreme a bit more convenient and more

00:43.430 --> 00:57.980
user friendly than the second option which we will see later.

00:58.180 --> 00:59.950
All right thanks for installing.

00:59.990 --> 01:07.490
OK don't show again A.C. different apps and what we are interested in is and that should be done notebook

01:07.490 --> 01:08.230
app.

01:08.240 --> 01:14.180
And as we can read here the typical notebook is a web based interactive computing notebook environment

01:14.630 --> 01:20.790
where we can edit and run human readable docs slide describing the data analysis.

01:20.840 --> 01:25.670
So an easy words we can actually use to put a notebook to write and run our code but also we can use

01:25.670 --> 01:33.770
it as a text editor and just write text and integrate images and visualizations and also HCM and code

01:33.860 --> 01:35.450
much more.

01:35.450 --> 01:40.820
And in particular on data science to get a notebook is very popular because say you can do your data

01:40.820 --> 01:47.030
analysis and write your code and also use it as a text editor and describe and say whatever you are

01:47.030 --> 01:47.970
doing actually.

01:48.320 --> 01:51.500
And also in research to better notebook is quite popular.

01:51.530 --> 01:59.500
So there are some researchers which actually submit their research papers as to put a notebook.

01:59.510 --> 02:02.330
All right so let's launch our first two on notebook

02:07.780 --> 02:09.130
and what an icon that does.

02:09.130 --> 02:13.190
Actually it opens a local server and our standard Internet browser.

02:13.190 --> 02:15.850
So here we are on our internet browser actually.

02:16.300 --> 02:21.970
However we are not connected to the Internet so we can also use them to put a notebook offline.

02:22.240 --> 02:25.110
However there's the option to use it on a web server.

02:25.120 --> 02:28.360
But yeah this is not a topic of our costs actually.

02:28.930 --> 02:35.340
So now here we are on the Jupiter dashboard and this sets like a home page for our Jupiter notebooks.

02:35.350 --> 02:43.600
And the main purpose is to display our notebooks and files in our current directory and depending on

02:43.750 --> 02:49.910
which folder you installed I conduct before we can see here the folder structure of.

02:49.990 --> 02:57.340
The folder value and stored Anaconda and in my case that was um here uh the user folder

03:02.510 --> 03:06.760
and actually you can see here so this is actually the same folder structure.

03:06.770 --> 03:13.380
So to get a notebook actually makes reference to our users folder here.

03:13.380 --> 03:19.470
All right so let's open our first to the notebook and therefore we go here to New and we are opening

03:19.500 --> 03:21.480
a Python 3 notebook

03:27.030 --> 03:28.650
so here we are on the notebook.

03:28.650 --> 03:32.070
And first of all we can change the name of our notebook.

03:32.070 --> 03:40.890
If we go here to untitled and say OK let's call this notebook test and here we can rename it.

03:40.890 --> 03:50.320
So now our notebook name is test we can also change the name by going here to file and rename.

03:50.350 --> 03:52.250
So this is the same.

03:52.370 --> 03:56.130
We can also name it let's say test one

03:59.190 --> 04:01.450
and now we can go into our first cell.

04:01.450 --> 04:09.270
So this is a coding cell actually where we can write our code also just text and you can see here which

04:09.420 --> 04:19.010
our mode we have and this is now set to code so we cannot code a python code here so let's say we try

04:19.010 --> 04:21.200
to use python as a calculator.

04:21.200 --> 04:29.380
So one plus one and now we want to run our execute our code and there are actually four options to run

04:29.380 --> 04:31.030
our code.

04:31.030 --> 04:39.250
So option number one is up by just clicking here run and there can see the output or the result of our

04:39.250 --> 04:43.530
code is to so we can see here our cell.

04:43.720 --> 04:47.410
This is actually the input to our Python kernel.

04:48.100 --> 04:55.700
And here you can see the output of our code 2 and we can go to the next cell and for example calculate

04:55.700 --> 04:56.890
the three plus three.

04:56.890 --> 05:06.460
And the second option to run the cell is by just clicking here and no surprise in the output of six

05:07.570 --> 05:13.750
and we can run a set of multiple times so let's run again our first settle and let's use them.

05:13.750 --> 05:19.660
The third alternative we can press shift enter here.

05:19.900 --> 05:26.560
So again we get to end the shift and we run the cell and then we are selecting automatically the next

05:26.560 --> 05:27.010
cell.

05:27.010 --> 05:32.840
So now we are here in our cell to and let's go back to our first cell here.

05:32.840 --> 05:40.320
There is another option to run the cell and that's the keyboard shortcut I'd enter.

05:40.700 --> 05:44.750
You can run the cell and then insert a new cell below.

05:44.760 --> 05:52.360
So let's run the cell with it enter and then you can see we have from the cell our output is again to

05:52.610 --> 05:55.430
now be inserted a new cell here.

05:55.910 --> 06:02.690
And here we can calculate let's say two plus two and the actually fifth and last option to run the cell

06:03.170 --> 06:04.450
is by control.

06:04.460 --> 06:13.700
And so let's tap control enter and they can see to get the output for but we are yes stay in our current

06:13.700 --> 06:14.360
cell here.

06:14.420 --> 06:21.430
So we are not creating a new cell so we have five options to run the cell and depending on what we want

06:21.430 --> 06:28.270
to do as a next step yeah we can either go to the next cell with shift enter or we can create another

06:28.270 --> 06:29.220
cell with.

06:29.230 --> 06:31.830
And so that's a lot of flexibility.

06:31.840 --> 06:38.680
All right so once we are finished with our code we can also save our 2 billion notebook by clicking

06:38.680 --> 06:47.630
here on the safe button and we can also save our Jupiter notebook here safe and check point and then

06:47.630 --> 06:49.610
we can close our Jupiter notebook

06:52.490 --> 06:58.130
and you can see this is now our Jupiter notebook fire and this is here on our dashboard.

06:58.130 --> 07:05.120
And also if we open here our use of fire we can also find here the Jupiter notebook fire here in our

07:05.120 --> 07:12.380
users folder and there the green icon says and that the Jupiter note book is still running even if you

07:12.380 --> 07:13.150
have close it.

07:13.150 --> 07:17.120
So to really close it we have to go here on running.

07:17.690 --> 07:20.870
And here we can see that still one notebook is running.

07:20.870 --> 07:27.160
So we have to shut down at so it's not enough to just close the Jupiter notebook.

07:27.170 --> 07:33.860
So we have to shut down it here and running and now you can see it's black.

07:33.930 --> 07:35.340
All right let's close here.

07:35.340 --> 07:41.310
The Jupiter notebook the dashboard Okay quit.

07:41.490 --> 07:47.330
Yes and before I said that there are two alternatives to open a Jupiter notebook.

07:47.390 --> 07:53.490
So the first alternative is via the an icon navigator and the second is via an Air Canada prompt.

07:53.510 --> 07:55.100
So let's search for it.

07:56.480 --> 08:02.270
And here you can see the anaconda prompt and it is kind of a command style.

08:02.290 --> 08:07.840
So the command is actually the primary interface for managing installation Safari is packages so you

08:07.840 --> 08:14.950
can actually query and search an icon that packages like num pie or pandas and we can check the current

08:15.160 --> 08:21.370
Anaconda installation and we can also create new environments and install and update add on packages

08:21.370 --> 08:23.770
to our existing environment.

08:23.830 --> 08:29.560
However we fly said that the anaconda navigator was the graphical user interface is a little bit more

08:29.770 --> 08:33.640
user friendly and convenient because you don't have to enter manually commands.

08:33.650 --> 08:40.150
So what do I mean with manual command so if you want to open a shop with a notebook here with the anaconda

08:40.150 --> 08:44.490
problem we have to tap in to it.

08:45.610 --> 08:50.530
Note book and then if you press and

08:55.470 --> 08:58.560
actually also our bit of a notebook dashboard opens here.

08:58.560 --> 09:01.510
So here we can see our test tube the notebook.

09:01.530 --> 09:10.230
We can reopen mid and we can see our to get a notebook test one so there are two ways to open our two

09:10.230 --> 09:16.320
better dash plots so either via the anaconda navigator or by the anaconda prompt and yeah it's actually

09:16.320 --> 09:17.310
a matter of taste.

09:17.310 --> 09:18.900
What do you prefer here.

09:18.930 --> 09:21.480
And there you can do whatever you like.

09:21.480 --> 09:21.840
All right.

09:21.840 --> 09:27.060
So now we are finished with this session and the next session we will have a deeper look into the Jupiter

09:27.090 --> 09:27.650
notebook.

09:27.660 --> 09:28.530
See that by.
