Installing Python and Jupyter Notebook on Windows 11

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone so let's do a fresh python installation along with the Jupiter notebook so I'm doing this on my system this is uh Windows machine Windows 11 and if you are if you're are doing this uh for Windows 10 or lower version so I think the steps are pretty same so you can follow the same steps for any other uh Windows version so let's do it so let's check whether we have python in our system or not for that let's open command prompt by typing CMD and just type python here when you type python here in CMD and hit enter it will lead you to the windows uh Marketplace which is not a recommended setting all right so we always recommend python installation from the official off python web page so let's let's see the official python web page this is what is the python official web page python.org from where the installation is highly recommended when you see this you will see the change in the version uh many times so here you can see the the video is been recorded and the latest version of python is 3.12 .4 right let's click on this button and you can just see one more thing that we have lot of options like we have windows so this is this installation is for Windows and we can also do it for Mac OS and other platforms as well so you can check it out based on your needs but let's go for a Windows installation let's click on python 3.12.5 you will see as I clicked on that an exe installer is been uh downloaded you can just see that yeah so let's get started with this let's click on this python installer so now it's just simple next next next installer but few things that need to be understood I would like to stress on this particular option that add python.exe to path basically this action will add Python and its related commands into the environment variable of the Windows operating system system so that we can run the different commands and it can recognize it all right and if you want you can also use use admin uh privileges when installing pi. EXA okay so let's click on this please do not forget to uh do this all right because otherwise when you type any command in command prompt or something like pip or python it will not be able to recognize it so please do check that you have checked on this particular option add python exe through path right and then click on install now it will ask you uh for the permissions let's click on yes and you can just see that installer is installing the python 3.12.5 we have to wait till the setup is in progress so it took few seconds and you can just see it is almost at the end of the installation yeah you can just see this message setup was successful now let's check this in command prompt let's type python now and let's see what is the output I think we have to close that window and open a new window because the changes are not so let's do python here and you can just see that output is python 3.12.5 which shows that we have successfully installed python in our system right so that is about python installation now let's move towards the next step that is installing Jupiter notebook jupyter notebook one of the very very popular IDE is available for python so let's try installing jup notebook and how do we install it let's see again we would like to install Jupiter from its official web page so you can see it's an open source project to develop uh these softwares you can see open standard so let's go to jupyter notebook notebook you can just see this there is an installation tab right you can just see Jupiter notebook is the simplest ID I have ever seen is good for learning it is very very effective you can just see this you can go through the web page let's go to this installation Tab and here we will have two-step process to install Jupiter notebook so if you just see that the very first thing that you have to do is is installing jupyter lab so let's install Jupiter lab and the next step will be jupyter notebook installation let's do it to install jupyter lab we have to write a command in command prompt so let's open a command prompt and here if you just see the command to uh to install jupyter lab it is PIP install Jupiter lab make sure that you don't have space between Jupiter and lab you're going to see the exact command let's hit enter and you will see that it is um it is going to store install the jupter lab you can just see the requirements are already satisfied for some of the packages please let this installer do its task don't interrupt it and whatever the necessary packages you you just see some of the necessary packages are in are downloaded and installed you can just see this yeah so this is this was the first step now the next step that we have to do is nothing but installing Jupiter lab so the same way we are going to use pip so pip the command pip install and notebook so just install pip VIP install notebook just P enter you can see some requirements are already satisfied please let the uh installer to do its task you can see the message successfully installed notebook so now we are ready with our Jupiter and uh notebook so let's open the jupyter notebook let me just tell you guys jupyter notebook is a browser based application so whenever you open jupyter notebook it will be open in your default browser so you should be checking what is your default browser so let's go into the search and uh look for the default apps yeah and you can just see if you scroll down the default web browser for me is Google Chrome it might be different for you so whatever you like I mean whether it can be Google Chrome Mozilla Firefox just select it from the list of the available uh browser in your system so just make sure that you have some default web browser and uh you're good to go so let's open the jupyter notebook and how do you open that jupyter notebook it's simple you have to type Jupiter without any PP or install something we just have to Simply write Jupiter and space notebook this command will open the jupyter notebook in the browser let's enter you can just see a new tab is being opened in uh the Google Chrome and you can just see the new window here in Jupiter notebook can you see this right and here is the installation of Jupiter now we are ready with the Jupiter one thing that I would like to point out please do not close this particular particular window command window because if you just observe there's an engine which is going on internally against this Jupiter notebook session so can you just see that right so do not close this otherwise you will not be able to execute any of the code right so just make sure that you are minimizing this window where you have just uh run that command jupyter notebook now this is the front page of jupyter notebook now let me just tell you that how you can get started with uh coding so here if you just observe that this is your homepage of uh Jupiter and if you just observe these are nothing but the folders that we have these are the directories in which you have done something make sense the best idea is you should create a folder uh from here you can just see a new new tab here a new drop down so let's click on drop down and if you just see this new folder so let's click on new folder it will help us to organize our all code inside this right let's create a new folder and name it whatever you like it like it is my python code so this is going to be my directory and let's go inside that folder so if you just see that from root I into my python code and here what I can do I can start creating a notebook so if just uh again go to this new and create Python 3 ipy kernel in this way you can actually create a new notebook inside this fot let's click on Python 3 ipy kernel so can you see in a new tab it has created a new jupyter notebook and you can just see this is right now Untitled so you can click on this Untitled and and you can rename it so like my first notebook let's rename all right this is rename and one thing that I would like to point out this Jupiter notebook has got Auto saving features so whatever you make changes in the notebook it is going to be Auto saved right in the stipulated period of time so do not worry about saving the code it is be it is going to be automatically saved and here can you see this is your cell where you can actually write your code so like I'm writing a simple code and what you have to do to to execute this particular cell there are two options right you can select this cell and click on this run button right so you you will see the output right here you can just see the output yeah or you can also do one thing there's a shortcut here and you can press shift enter to get that output shift enter shift plus enter is the shortcut to execute this line I hope you got this idea and that is how you can actually write your code and execute everything and it's going to be all automatically saved no problem with that so this is the way you can uh install Python and jupyter notebook in your system as simple as that thank you
Info
Channel: Ajitabh Mahalkari
Views: 246
Rating: undefined out of 5
Keywords:
Id: uB9SNAhfFKE
Channel Id: undefined
Length: 12min 46sec (766 seconds)
Published: Sat Jun 29 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.