Hi. In this video we will explore Jupyter Notebooks file browser.
In our last video,
we have stopped the Jupyter Server and with this we also stopped the
container. So please start it again and log into the Jupyter again.
Mice is already already running. And remember that we have, uh,
mapped our repository folder on our host computer
to the work folder in the container.
And now we can see its contents
And what we can everything do with our files and folders.
We can see here upload button. With this,
you upload directly a file from your host computer to the container
or example. I now will upload this que file,
click upload and it's already here
with new button. We can create new notebooks
here.
We have available three types of notebooks depending on which kernel you
would like to use.
If you want to use notebook with Julia language with this one,
the availability of kernels depends on which
packages do you have installed. So for example,
if you want to use Notebook with Scala,
you have to install specific packages for it.
Now I will create new notebook with Python kernel.
Cool,
new notebooks is created and here I will input some example
text.
Click shift enter the cell is executed. And
Ctrl s you save the notebook.
Don't worry about uh, how to work with the notebook. For now. Uh,
we will explore it in more detail. In the next sections,
we can create new files.
Control s saves the file.
We see that new notebook is already here and the new file is
already here as well.
We can create new folders here. Now, uh,
untitled folder is created
and we can launch new terminals.
This is a regular Linux terminal,
so for those of you who are familiar with Linux,
you will know how to work with it. And for those of you who aren't,
do not worry. We will learn the basics throughout the course.
We can also duplicate, move,
rename, download, view, and edit the files. So for example,
I now will duplicate, uh, this file.
I have to mark it, click duplicate,
and a new copy of this file is created.
We can rename this file.
We can move this file, for example,
I will move it into the untitled folder, which we created.
Cool is here.
We can download this file. So now with this,
you will download this file from the container to your
host computer. So it's already downloaded.
We can view this file with this.
You will see its contents on a new tab in the browser.
This is useful for example, when you want to see H T M L files,
for example. I will show you that.
So now we will edit this file.
I will have to change its name to
some file html
and I will just copy this, uh,
H T M L code into this file
and control as you save the document.
So now when we click view, you will see it H T M L.
Nice.
And we can of course delete the files.
You'll see this notebook which we have created
has a green icon here. That means it's, uh,
kernel is running.
So we cannot rename this file yet. We have to shut it down.
Now we can rename it,
we can work with notebooks, uh, very similar to other files,
but there is a difference that, uh,
when you click view the notebook,
this is the interface for editing the notebook.
But when you click edit the notebook,
you'll see it's raw data. So, uh,
this basically tells you that notebooks are just, uh,
json documents with, uh, for example, this text,
which I included, and a lot of other metadata about, uh,
cells charts and so on.
Great, that was it for this section. In our next video,
we will explore the Jupiter Notebooks file editor.