0% found this document useful (0 votes)
17 views19 pages

18DIP Lab 1

The document describes steps to install Anaconda software and run a simple Python program. It involves downloading Anaconda, installing it on Windows, verifying the installation, creating a Jupyter Notebook project folder, and using Jupyter Notebook to print "Hello Python". Key steps include downloading Anaconda from the website, running the installer, verifying the version, launching Jupyter Notebook, making a project folder, creating a new Python file, and running a print statement to display text.

Uploaded by

Abdul Ahad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views19 pages

18DIP Lab 1

The document describes steps to install Anaconda software and run a simple Python program. It involves downloading Anaconda, installing it on Windows, verifying the installation, creating a Jupyter Notebook project folder, and using Jupyter Notebook to print "Hello Python". Key steps include downloading Anaconda from the website, running the installer, verifying the version, launching Jupyter Notebook, making a project folder, creating a new Python file, and running a print statement to display text.

Uploaded by

Abdul Ahad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Lab Manual #1

Objective:
Installation of Anaconda and Running First Program.

Apparatus:
 PC/Laptop with Windows 7/8/8.1/10
 Anaconda softwareLatest Anaconda 3 Release - Anaconda 3.7
Theory:
In this lab, we will download the Anaconda software and install it on our computer so we
can use it in our future labs. Here are some steps we perform to download and install the
software.

 Download Anaconda Setup for Windows


 Install Anaconda on Windows
 Verify Installation of Anaconda
 Running Your First Program in Python

I. Download Anaconda for Windows:


System Settings
Programming Language Python 3.7.6

IDE Jupyter Notebook


Platform Window 10 Pro 64-bit Operating System
Subject Digital Image Processing
Step 1:
 Open your Web Browser
 I am using Google Chrome Version 83.0.4103.97
Step 2:
 Type the following URL in the Address Bar of Web Browser and
press Enter Key
 URL: https://www.anaconda.com/products/individual

Step 3:
 Scroll the Web Page
 In the Your Data Toolkit section, Click on Download
Step 4:
 After clicking the Download button
 Download Anaconda Setup depending upon your operating systems
 Control automatically moves to the Anaconda Installers section on the same Web Page

Step 5:
 Download the latest version of Anaconda released
 In my case it is Latest Anaconda 3 Release - Anaconda 3.7

Step 6:
 Click on the file named 64-bit graphical installer for download
Step 7:
 The file will start downloading

II. Installing Anaconda on Windows:

Step 1:
 Open the Folder containing Anaconda Setup for Windows
 In this case, it is in Download Folder.

Step 2:
 Double Click on the following File in the Folder
 File Name: Anaconda3-2020.02
2020.02-Windows-x86_64.exe
Step 3:
 Anaconda Installer Wizard will open
 Click on Next

Step 4:
 The License Agreement will appear
 Click on I Agree
Step 5:
 By Default, the Just Me (recommended) radio button is checked and use the default
settings for installation
 Click on Next.

Step 6:
 By Default, the Just Me (recommended) radio button is checked and use the default
settings for installation
 Click on Next.
 In this step, the Install Location of Anaconda is required, the default location of
Anaconda is: C:/ProgramData
 You can change thee Install Location of Anaconda by Clicking on Browse button and
select the Folder where you want to install Anaconda
 Click on Next

Step 7:
 You have two choices here
 Choice 01: If Python is not installed on your Laptop / PC
 Select both Options given below:
 Add Anaconda to system Path Variable
 Register Anaconda as System Path 3.6
 Choice 02: If Python is installed on your Laptop / PC
 Select the Option given below
below:
 Register Anaconda as System Path 3.6
 In my case, Python is already installed on my lapto
laptop
 We will select the following option
 Register Anaconda as System Path 3.6
 Click on Install

Step 8:
 TheAnacondaSetupwillstartinstalling
 Don'tworryitwilltaketimeininstallation

Step 9:
 After the completion of installation
 Click on Next
Step 10:
 In the next step, it will provide the option of installing Visual Studio Code Installation
 Click on Skip to skip this Step (see figure below)

Step 11:
 Uncheck both the boxes (see figure below)
 Click on Finish to close the Anaconda Installer Wizard
III. Verify the Installation of Anaconda:

Step 1:
 Click on the Start button in the Task Bar

Step 2:
 Search for Anaconda
 If you are using Windows 8/8.1 Pro Search button will appear as shown below

Step 3:
 Clickon AnacondaPrompt
Step 4:
 Search for Anaconda Prompt
 If you are using Windows 10
 Search button will appear as shown in the Figure below

Step 5:
 AnacondaPrompt windowwillappearonyourComputerScreen

Step 6:
 CheckingtheAnacondaVersion
 Step 6.1:
 In Anaconda Prompt window, type either of the two commands

python-v
OR
python
python--version
 Step 6.2:
 Press Enter Key
 This command will display the version of Python installed on your
Laptop/Personal Computer

 Step 6.3:

condainfo
 InAnacondaPromptwindow,typethefollowing Command.

IV. Creating a Project in Jupyter Notebook:


Step 1:
 OpentheAnacondaPrompt
 Step 1.1:
 Type the following command in Anaconda Prompt
jupyternotebook
 Step 1.2:
 Press Enter key
 Jupyter Notebook will open in the Web Browser
Step 2:
 TheGUIofJupyterNotebookwilldisplayallFilesandFoldersfromyourComputerSystem
 Step 2.1:
 SelecttheFolderamongstthegivenFolderswhereyouwanttosave
JupyterNotebookProjects
 Inourcase,IwillbestoringmyJupyterNotebookProjects at Desktop.
 Click on Desktop

Step 3:
 It willtakeyoutotheDesktop Folder

Step 4:
 Click on New to make a Folder inside Desktop to save Jupyter Notebook Projects
 From drop down Click on Folder
Step 5:
 AnewfoldernamedUntitledFolder willbeadded

 Step 5.1:
 Check the Check Box
 Click on Rename

 ADialogBoxwillappearontheComputerScreen
Step 6:
 Typethe newnameoftheFolder

 In our case, Data is the Folder Name

Step 7:
 ClickonNew
 Then fromthe
romthe dropdown,ClickonPython 3

Step 8:
 A newFile will Openin anewTab
Step 9:
 Click on Untitled

 A Dialog Box will appear on Computer Screen

Step 10:
 Rename the project
 I am naming it as MyFirstProgram
Step 11:
 Theprojectwillberenamedandsaved

V. Running Your First Program on Jupyter Notebook:


 Finally, our Jupyter Notebook Project is created
 In this Section, I will try to show, how to run your first Python
Program on Jupyter Notebook.
ProgramAim:
 Themainaimofthisprogramistodisplaythefollowingmessage “Hello Python”
 Note:We’reusingtheJupyterNotebookFile(namedMyFirstProgram)whichIcreatedinthepre
viousSection.
Step 1:
 InJupyterNotebook,typethefollowingPythonStatement:
Print (“Hello Python”)

Step 2:
 Click on Run (or Press Shift + Enter from Keyboard) to execute the command print()
statement will be executed and the message will be displayed.
Step 3:
 Click on Plus (+) to add a new row in Jupyter Notebook File

Conclusion:

You might also like