Jupyter Notebook | Installation, User Interface Tour, Complete Walkthrough

Jupyter Notebook | Installation, User Interface Tour, Complete Walkthrough

hey guys welcome to my channel machine
learning tutorials today we are going to learn about Jupiter notebooks and also
find out why they’re becoming so popular nowadays so let’s start by seeing how we
can install them the link to the website is given in the description
there are basically two ways you can install them the one recommended by this
website is to install anaconda. Anaconda comes with Jupyter notebook be installed
along with many of the libraries and frameworks so if you’re using a Mac you
can follow a tutorial of mine on how to install in a corner I have added the
link to that in the description as well and if you’re on Windows you can easily
find a video on YouTube which will guide you on how to install anaconda the
second way which I would not recommend is to install it using pip you can do
that simply by running this command on your terminal if you using a Mac and the
modern form feels like those if you install anaconda open up an account a
navigator if you’re using a mac book you can find it in your Applications folder
and if you’re using Windows you can search for it by hitting the Windows key
once you’re in the anaconda navigator click on this launch button and it will
open up the Jupiter notebook server for you
if you install Jupiter notebooks using the fit command simply open up the
terminal or the command prompt depending on whatever operating system you’re
using type Jupyter notebook and hit enter please mind the Spelling’s it’s
Jupyter with a ‘y’ in it and also there’s a space between Jupyter and
notebook this is a window that will open when you launch the Jupiter notebook
server you can navigate to whichever folder you want to create our new Tjuta
notebook in so let’s do that I’m just going to create over here click on new
and python 3 you can rename your file by clicking over here let’s name ours first
notebook and go to the Help section to check out
the keyboard shortcuts there are lot of them and the keys will vary based on
your operating system you can customize these shortcuts as well by clicking on
edit shortcuts and write your own keys for different commands you can also get
a tour of the user interface by clicking on help and here just click Next and it
will continue to show you the different options that you will have in the joopa
notebook let’s skip it for now you can also find the link to the documentation
of some popular Python’s libraries like might roll a sci-fi and Empire even just
click over here and it will take you to their documentation the user interface –
and the Help section would have told you about what all these icons mean but in
case we haven’t taken it I’d like to tell you about some of the important
ones this one is to save and checkpoint your file this one is to add new cells
this one is to delete cells this one will copy a cell and this one
will paste it let’s try these two first let’s write a basic line of code and try
to paste it in the cell below is equal to 2 click on this and click on the code
in the cell above gets copied in a new cell below let’s delete them now far
from that you can use these arrows to navigate through the cells down up you
can use this to run a block or line of code you can use this to interrupt the
execution of your program you can use this to restart your kernel and you can
use this one to restart the kernel and even the whole notebook let’s now write
a line of code and see how we can execute it in Jupiter notebook I write a
basic one print hello world to learn the cell you can simply press Shift + enter
on your keyboard and it will run this cell repents hello world there are other
options to run it as well you can simply click over here apart from that you can
go to the cell option over here and if you click on lung cells and
select below it will learn the current cell and move to the cell below and you
can also try these options than all it will execute the whole of the notebook
in sequence you can click on done all above and it will execute all the cells
above your current cell plan all below it basically than all the code that is
below your current cell this number over here is basically to show the sequence
of execution of the instructions there’s one more thing I would like to show you
let’s try to import tensor flow this static means that this line of code is
currently executing you can halt it by clicking over here and you can see that
the kernel has been interrupted it can complete its execution as I told you
before this number seven signifies that this walks this seventh cell to be
executed in this notebook the cell before that has the number six the
numbering did not start from six but since we executed this cell multiple
times just to check out the learning options that we have this has become the
sixth instruction in our notebook to be executing this cell is annoying me a
little so I’m just going to go ahead and delete it currently your code does not
have line numbers but if we want them to appear just go to view and click on
toggle line APIs now your line numbers will be numbered you can see that over
here let’s now discover one of the best features of Jupiter notebooks which adds
to its interactivity which is the type of cells it has the cell that we were
typing involves a code cell you can also create a mountain cell to sort of
explain what is happening in your code let’s create a markdown cell anything
that you write over here will not be interpreted as code this is to sort of
give headings your code and make it more readable and easier to understand let’s
see what you can do in a markdown cell if you type in anything let’s say print
hello world it will simply appear as a text if you
want to make it appear in bold do this shift enter you can see it says print
hello world in food to make a heading type in hashtag give a space and write
whatever you want let’s write Jupiter notebook tutorial let’s run it you can
see it appears as a heading you can make h2 heading by using two hash tags let’s
write down mark down cells for an HT and h4 you can simply just continue to
increase the number of hashtags let’s try h5 I would highly recommend that whenever
you are writing some code you should add a markdown cell above to explain what is
happening in the next few lines of code if you want to learn a bash command in a
Jupiter notebook you can do that by simply entering that come on with an
exclamation mark in the start let me show you an example by trying to import
numpy let’s run it as you can see that the command executed but since I already
have number it says that the requirement is already satisfied now the last thing
that I would like to tell you about is an extension which I personally really
like and would definitely recommend that you install it as well so let me show
you how you can find the link to this website in the description let’s go a
bit down to install the NB extensions if you install jubilee notebook using pip
copied this line of code and if you have anaconda you should go with this one
since I am using anaconda I am going to copy this line of code go back to your
notebook exclamation mod let’s paste that line now this is going to take some
time so I am just going to skip ahead since I already have this installed it
says all the question text is already installed by the way you can also
install this extension by learning this command in the terminal or the command
prompt without the exclamation mark let us now see the options that this
extension gives us go to edit and click here these are all the extensions that
this package offers there is a two to three convertor which will basically
convert code written in Python 2 into Python 3 this extension will tell you
the time it took to execute a particular cell you can see an example as well over
here like if you ran this command it will show this line telling you that it
took 519 milliseconds to run this command there’s also a district exchange
which allows you to export your notebook to your github account and the last one
which I like the best is the hinterland extension
let me just enable it and I will show you exactly what it does it’s close this
tab now now that we have hinterland enabled it will basically show us
suggestions to complete our line of code the hinterland extension may not be very
useful when you’re writing basic Python code but when you’re dealing with
frameworks it comes in very handy I will show you that with an example let’s try
to import the training test spread from cycle length if we haven’t heard of it
before do not worry this is just to show you how this internet extension is
helpful as you saw it gave me solutions as I
typed the code which can be very helpful a time let’s run this another benefit of
this is that when you write the name of a function it automatically tells you
the arguments that it expects so let’s try that when you insert the brackets it
will show you that this function expects these two arguments the last thing that
I want to show you in this tutorial is this feature so you just write down the
name of the method and add a question mark at the end and run that itself it
will show you the documentation for that particular function these are the
parameters that it expects there’s also a detail description for each parameter
that it expects if you go down we can also see examples using this function
like this one let’s copy this and paste it here this is the perfect example to
explain to you why this particular feature is very useful remembering all
these parameters is actually pretty hard especially if you’re a newbie and even
if you do remember these it’s just a hair cell to type in all of this it’s
just far more convenient to copy an example from the documentation of this
function with that I would like to conclude this tutorial I hope it was
helpful I would really appreciate it if you guys could drop your feedback in the
comments below the next video will be on Google for laboratory notebooks they are
just like Jubran notebooks except that google offers you free GPU to train your
models so if you are interested in machine learning and artificial
intelligence you should definitely give it a try if you guys like this video
please give it a thumbs up and subscribe to my channel for more videos like this
if you have any questions please feel free to ask them in the comments section
thank you for watching have a nice day

Daniel Ostrander

Related Posts

9 thoughts on “Jupyter Notebook | Installation, User Interface Tour, Complete Walkthrough

  1. Eric Adar says:

    Nice walkthrough. Thanks for posting. I find the background music a bit distracting – personal preference.

  2. Yami Yagami says:

    Just binge watched all your videos, and I must say that they are concise and to the point. Subbed, and will be looking forward to your advanced tutorials…Also, i suggest that you share your videos on reddit via r/learnprogramming etc..I forgot how I found you , but I hit some gold ! Either way, I hope you keep making videos, and, stay awesome!

  3. ranju184 says:

    achaa hai

  4. diagonel says:

    Nice video. I liked it. However, I also find the background music annoying. But the rest was great! Thanks for it!

  5. sharpEAGLES says:

    Thank You and Thank You and Thank You!

  6. dAR10 says:

    Thank you brazzer!!!!

  7. Anesh Patel says:

    Hi where I can get an extension for spelling check?

  8. Demola Hussain says:

    Great Job Brazzer. However, you didn't mention in the video that you had to restart your jupyter notebook for the nb_extension to take effect

  9. Alan Leung says:

    Hello, why nearly all the extension having prohibition marks and some exclamation marks?
    Why I enable the Latex and then the prohibition mark becomes exclamation mark?
    Please view the snapshot:

Leave a Reply

Your email address will not be published. Required fields are marked *