0% found this document useful (0 votes)
144 views23 pages

Lecture 1.1 - Introduction To Jupyter Notebooks and Google Colab

The document discusses Jupyter notebooks, which provide an interface for developing Python code. Jupyter notebooks allow users to write and run code incrementally, embed documentation using Markdown, and preserve outputs when exporting notebooks. They are useful for collaboration and sharing code as well as results. Google Colab provides a free version of Jupyter notebooks customized for machine learning with preloaded packages.

Uploaded by

Harsh Rawat
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)
144 views23 pages

Lecture 1.1 - Introduction To Jupyter Notebooks and Google Colab

The document discusses Jupyter notebooks, which provide an interface for developing Python code. Jupyter notebooks allow users to write and run code incrementally, embed documentation using Markdown, and preserve outputs when exporting notebooks. They are useful for collaboration and sharing code as well as results. Google Colab provides a free version of Jupyter notebooks customized for machine learning with preloaded packages.

Uploaded by

Harsh Rawat
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/ 23

Jupyter Notebooks

Madhavan Mukund
https://www.cmi.ac.in/~madhavan

Programming, Data Structures and Algorithms using Python


Week 1
Writing and running code

Manual
Text editor to write code
Run at the command line

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 2/7


Writing and running code

Manual
Text editor to write code
Run at the command line

Integrated Development
Environment (IDE)
Single application to write and
run code
On desktop or online, replit
Quick update-run cycle
Debugging, testing, . . .

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 2/7


Writing and running code

Manual
Text editor to write code
Run at the command line

Integrated Development
Environment (IDE)
Single application to write and
run code
On desktop or online, replit
Quick update-run cycle
Debugging, testing, . . .

What more could one want?

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 2/7


Collaboration

Share your code


Collaborative
development
Report your results

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 3/7


Collaboration

Share your code


Collaborative
development
Report your results

Documentation
Interleave with the code

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 3/7


Collaboration

Share your code


Collaborative
development
Report your results

Documentation
Interleave with the code

Switch between different


versions of code

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 3/7


Collaboration

Share your code


Collaborative
development
Report your results

Documentation
Interleave with the code

Switch between different


versions of code
Export and import your
project
Preserve your output

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 3/7


Jupyter notebook

A sequence of cells
Like a one dimensional
spreadsheet

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 4/7


Jupyter notebook

A sequence of cells
Like a one dimensional
spreadsheet

Cells hold code or text


Markdown notation for
formatting
https://www.
markdownguide.org/

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 4/7


Jupyter notebook

A sequence of cells
Like a one dimensional
spreadsheet

Cells hold code or text


Markdown notation for
formatting
https://www.
markdownguide.org/

Edit and re-run individual


cells to update environment

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 4/7


Jupyter notebook . . .

Supports different kernels


Julia, Python, R
We will use it only for
Python

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 5/7


Jupyter notebook . . .

Supports different kernels


Julia, Python, R
We will use it only for
Python

Widely used to document


and disseminate ML
projects
Solutions to problems
posed on platforms like
Kaggle https:
//www.kaggle.org

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 5/7


Jupyter notebook . . .

Supports different kernels


Julia, Python, R
We will use it only for
Python

Widely used to document


and disseminate ML
projects
Solutions to problems
posed on platforms like
Kaggle https:
//www.kaggle.org

ACM Software Systems


Award 2017
Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 5/7
Google Colab

Google Colaboratory (Colab)


colab.research.google.com
Free to use

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 6/7


Google Colab

Google Colaboratory (Colab)


colab.research.google.com
Free to use

Customized Jupyter notebook

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 6/7


Google Colab

Google Colaboratory (Colab)


colab.research.google.com
Free to use

Customized Jupyter notebook


All standard packages required for
ML are preloaded
scikit-learn, tensorflow
Access to GPU hardware

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 6/7


Summary

Jupyter notebook is a convenient interface to develop Python code

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 7/7


Summary

Jupyter notebook is a convenient interface to develop Python code


Incrementally update and run

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 7/7


Summary

Jupyter notebook is a convenient interface to develop Python code


Incrementally update and run
Embed documentation using Markdown

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 7/7


Summary

Jupyter notebook is a convenient interface to develop Python code


Incrementally update and run
Embed documentation using Markdown
Preserve outputs when exporting

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 7/7


Summary

Jupyter notebook is a convenient interface to develop Python code


Incrementally update and run
Embed documentation using Markdown
Preserve outputs when exporting
Useful for collaboration, sharing

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 7/7


Summary

Jupyter notebook is a convenient interface to develop Python code


Incrementally update and run
Embed documentation using Markdown
Preserve outputs when exporting
Useful for collaboration, sharing
Google Colab — free to use version configured for ML

Madhavan Mukund Jupyter Notebooks PDSA using Python Week 1 7/7

You might also like