0% found this document useful (0 votes)
15 views

Computational Thinking With Python 2 Lab

The document provides an overview of setting up Python and Anaconda for computational thinking, including installation steps and usage of tools like Jupyter and Spyder. It highlights the differences between Python 2 and 3, and discusses the functionalities of Jupyter Notebooks and Kaggle as platforms for data science. Additionally, it emphasizes the advantages of using Google Colab for online notebooks.

Uploaded by

Ishita Agarwal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Computational Thinking With Python 2 Lab

The document provides an overview of setting up Python and Anaconda for computational thinking, including installation steps and usage of tools like Jupyter and Spyder. It highlights the differences between Python 2 and 3, and discusses the functionalities of Jupyter Notebooks and Kaggle as platforms for data science. Additionally, it emphasizes the advantages of using Google Colab for online notebooks.

Uploaded by

Ishita Agarwal
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Computational

Thinking With
Python Lab.
DR. SHACHI MALL
Demo of Python from
https://www.python.org/downloads/
• a. Downloading
• b. Installation
• c. execution using command prompt cmd
• d. execution using idle
• e. Python 3 vs python 2 (Conclude that we will be using python 3)
• f. .py file
https://www.python.org/downloads/
Steps
https://in.video.search.yahoo.com/search/
video;_ylt=Awr1TiRyAzVjec8aXKa7HAx.;_ylu=Y29sbwNzZzMEcG9zAzEEdnRpZAMEc2VjA3Bp
dnM-?p=how+to+download+python+for+windows+10&fr2=piv-
web&type=E211IN1485G0&fr=mcafee#id=7&vid=24ab8b5e0fd7029aa27b0542ba60d143&a
ction=view
https://www.programiz.com/python-
programming/examples/area-triangle
Demo of Anaconda
https://www.anaconda.com/products/distribution

• Download
• b. Installation
• c. 32 bit vs 64 bit
• d. Execution of anaconda prompt
• e. Purpose of anaconda prompt (installing packages using conda command)
• f. Demo of spyder
Introduction
• Anaconda is an open-source software that contains Jupyter, spyder, etc that
are used for large data processing, data analytics, heavy scientific
computing.
• Anaconda works for R and python programming language. Spyder(sub-
application of Anaconda) is used for python. Opencv for python will work in
spyder. Package versions are managed by the package management system
called conda.
https://youtu.be/FTkUcSicRIA
Jupyter
• Jupyter Notebook is an open-source web application used to
create and share documents that have live code, equations,
visualizations, and text.
• It’s maintained by the Project Jupyter community. In 2014,
Project Jupyter and Jupyter Notebook became spin-off projects
from IPython and the IPython Notebook.
Notepbook
• It reads the code written line by line 2 then it evaluates that code 3 finds errors
and compiles every block 4 and then prints the result (if any) on the REPL shell.
• Creating an iPython Notebook Click on the New button under the Files tab, and
click Python 3 under the Notebook section.
• This will open a new notebook named Untitled in a new tab, you will probably
want to change the name, and to do so, click on the name written on the very
top of the page and you will be prompted to edit it.
Demo of Ipython Notebooks
https://youtu.be/q_BzsPxwLOE

• Opening Ipython Notebooks using jupyter notebook and jupyterlabs


• b. File extension .ipynb
• c. Py file vs ipynb file
• d. Why Jupyter Notebooks
• e. Demo on components of notebook: Add cell, copy, paste, execute,
terminate, etc.
Cont.
https://notepad-plus-plus.org/downloads/
• Loading notebook from external sources
• g. Finding the path of current jupyter notebooks
• h. Demo notebook service in Google Colab.
• i. Why online notebooks
• j. Mention other notebook services such as Azure notebook, Kaggle notebooks etc. (conclude that
google colab is better than others)
• k. Online python compilers in the web
Kaggale
https://www.kaggle.com/code/talestsp/download

• Kaggle is an online community platform for data scientists and machine


learning enthusiasts. Kaggle allows users to collaborate with other
users, find and publish datasets, use GPU integrated notebooks, and
compete with other data scientists to solve data science challenges.

You might also like