How to Install Jupyter Notebook & Python 3.12.1 in MacOS (2024) #jupyternotebook

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey my friends welcome to Joy's s in this video I'm going to show you how to install jupyter notebook in Mac there are actually multiple ways to install Jupiter notebook in Mac such as using Anaconda but in this video especially we are going to focus on installing Jupiter notebook without anaconda and it's the simplest and easiest way possible now if you are looking to install jupter notebook using Anaconda then you can find that video in the eye button of this video and if it doesn't exist there by any chance then you will for sure find it on my channel before you install Jupiter notebook your Mac must have python installed in it and how to check if python is installed you press command space to open the spotlight search then type terminal over here and open the terminal once it is open you type this command Python 3 hyon capital V you hit enter and it should display the version of the Python installed on your MACC if by any chance you don't have python installed then let me show you how to install python in your Mac to install python first open any browser on your Mac I will open Google Chrome and in the search bar of the Google Chrome just type Python and hit enter and then click on this website which is www.python.org once this website open opens you over on this downloads menu item and over here you will find the latest python available for download at the time of recording this video it is python 3.2.1 so you click on this and since I have accessed this website from Mac hence it automatically shows the python for Mac OS all right my download is complete let me access my download so I go to my downloads folder and here is this PKG file now I'm going to double click on this file and follow the instructions all right I'm going to click on continue continue again and continue again all right it's asking me to agree so I have clicked on the agree button and now it's saying that it's going to consume 176.000 MB of space on my computer I am totally okay with that so now I'm going to click on the install button okay it's asking me for my admin username and password let me enter that I click on install software and there you go the installation has begun it's good to see this message that install time remaining is less than a minute all right there you go the python is successfully installed so let's go back to the terminal and check what's the version it shows now it should be 3.2.1 all right so let me go back to the terminal actually I'll have to open a new terminal window to see the latest version so let me do that okay now let me retype the command Python 3 space hyphen capital V and there you go now the version is 3.2.1 so the latest python is installed following these steps you can install python in your Mac 2 if you don't have it installed already now let's install jida notebook but before that I am going to create a virtual environment why virtual environment because I work on multiple projects in this Mac and for each project I have separate virtual environment because I want to keep libraries specific to a project separate from libraries specific to other projects that's why virtual environment is necessary and it's a good practice to First create a virtual environment and then install libraries or Computing platforms like Jupiter notebook within it before that let me close this terminal window and keep the latest terminal window only to avoid confusion over here I'm going to get inside my desktop and let me create a new folder by the name VNV so it will be mg VNV and I'm creating this folder in the desktop all right you can see the folder appearing over here I'm going to get inside this folder and now I'm going to create a virtual environment within it so the command to create a virtual environment is Python 3 hyph m VNV dot why dot because I am within the folder in which I want to create the virtual environment you can specify an absolute path over here and it's going to create the virtual environment within the folder specific ified in the path so let me hit enter it's going to take some time and there you go it hasn't thrown any error so I think virtual environment has been created let me type the command LS hyphen LTR and there you go the virtual environment has been successfully created now we are going to activate it so how to activate it the command is again very simple it is Source space bin forward SL activate and there you go you see V EnV within brackets over here in front of the prompt this means that the virtual environment is active this means that V andv is the virtual environment which is active all right now the time has come when we are going to install the Jupiter notebook so the command is very easy so it will be wait a second before we begin install calling jupyter notebook let's check if Jupiter notebook already exists in this newly created virtual environment so to do that we are going to write this command Python 3 hyphen M pip freeze all right nothing exists in this virtual environment as of now now let's install the Jupiter notebook so the command is very easy it's spip install juper I hit enter and the installation has beun quite a lot of downloading it is doing okay you can see all sorts of packages it has downloaded and there you go the installation is complete Jupiter notebook is now installed now let's check whether Jupiter notebook appears within the virtual environment so the command will be Python 3 hyphen M pip freeze and I see lots of Jupiter lab related packages installed over here which totally says that Jupiter notebook is successfully installed now let's actually start it okay so let me clear this up a bit and let me write Jupiter notebook here this is the command to start the Jupiter notebook I hit enter and it has started all right there is a good chance that it's going to automatically start in a new tab in your browser like it has done for me if it doesn't then you go back to the terminal and you'll find the URLs over here which you can copy and paste in a tab and it's going to start the chuper notebook for you as you can see this is the directory structure of the V andv environment now you would want to code something so to do that you'll have to start a new notebook so for that you click on here on new and over here you can see the notebook option you click on it and a new notebook has opened for you select the kernel it has to be Python 3 just select it just click on the select button and your notebook has started now you can actually code it so let me write the first line of quote for you it will be printing hello word so I have written the quote and now I'm going to click on this run button and there you go hello word is printed you can rename this notebook by just simply clicking here and uh you can rename it to whatever you want let me rename it to First Jupiter program all right it's renamed and you can see the notebook appears over here within the VNV directory as first to Jupiter program. ipynb file okay the green icon that you see over here means that it's currently in operation even if you close this tab that doesn't mean that the notebook has closed you will have to explicitly close it by shutting the Kel down like this okay now it's closed now if you reopen it like this it's going to reopen but my line of code is gone because I didn't save it so let me teach you how to save it I will write print hello word again again let me execute it okay it has been successfully executed now I'm going to click on file and I am going to save the notebook now if I close it I go back here if I shut down the kernel and I reopen it the line of code is going to appear now because I saved the notebook before all right this is how you install Jupiter notebook in your Mac by creating a virtual environment in the easiest way possible I hope you enjoyed learning to install Jupiter notebook in your Mac from this video of Joy Tech I'll see you in the next video of Joy tech till then goodbye and take very good care of yourself
Info
Channel: Joey'sTech
Views: 4,922
Rating: undefined out of 5
Keywords: how to install jupyter notebook, how to install Jupyter notebook in mac, Jupyter Notebook in MacOS, Jupyter Notebook without Anaconda, How to install Jupyter Notebook in MacOS, how to install Jupyter Notebook on Mac, How to download and install Python
Id: pkjtbnsX7Yw
Channel Id: undefined
Length: 11min 47sec (707 seconds)
Published: Sun Feb 04 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.