Hi. In this video we'll work with, uh,
Jupyter Notebooks violator. In our last section,
we have explored the file browser and we have seen it very simple and
very easy to use. Uh, the same applies for the file editor as well,
uh, but it provides you, uh,
just the basic features to work with, uh,
files and scripts.
So let's go to our repository. Let's check this, uh,
first folder for module number three.
I prepared for you here a few files,
which we'll use in this module.
So let's open this utility by file
here. I created just, uh, one Python function now,
which takes one parameter and it brings the type of
the input data and its shape. That means a number of columns and number of rows.
It just for illustration, how to work with this, uh, file editor.
Okay, we can go to file, we can create new files, save the files,
rename the files, and directly download the files.
A funny thing is when you click, uh, new button, uh,
to create new file from the file editor, you got an error. But do not worry,
this is, uh, a back in Jupyter,
but there is a easy fix for it. Uh,
just delete from the U r l undefined word at
the beginning of the u r l and one flesh
Now is working or you can create the files directly from the
file browser.
We can search for things in the text. Uh,
we can search and replay the strings in the text and we can set the key
maps.
For those of you who doesn't know what regular expressions are,
they allow you to search through text based on, uh,
very complicated conditions. For example, I would like to search, uh,
for a string column, but, uh,
not columns. So not the SS at the end.
This is the syntax for using regular expressions with the one slash at the
beginning and one slash at the end.
N B C.
It has found one occurrence of the string column but
not columns, which is here.
I highly suggest to you to learn the basics of regular expressions,
uh,
because if you are beginner data scientist or uh,
beginner programmer, you will definitely encounter, uh,
use cases where you will find it very useful.
Regarding key maps, uh,
I think the default key map is okay with this, uh,
the file editor will behave like, uh, notepad for example,
but if you are used to work with other file editors like Sublime
Text or Vim Editor or imex, uh, you can switch to this one.
We can hide the heaters,
we can hide the row numbers or to show
and we can set the programming language of the script. Um,
the file editor, it automatically guesses, uh,
the programming language based on the
extension of this file name.
We see here that there are a lot of programming languages available.
Okay, that was it for the file editor. In our next video,
we will explore the terminal.