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

slides

Uploaded by

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

slides

Uploaded by

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

Microsoft.

com/Learn
Introduction to Iot
Aakash Sharma
Get started with Jupyter
notebooks for Python
Speaker Name
Title

Speaker Name
Title
Join the chat at
https://aka.ms/LearnLiveTV
 Understand basic programming concepts.
Prerequisites  Have Python 3 installed locally.
 Create a Jupyter notebook locally.
Learning  Run a Jupyter notebook by using Python in Visual
objectives Studio Code.
 Describe some of the ways to build a notebook.
 Introduction
Agenda  Set up your environment
 Exercise - Create and run your notebook
 Exercise - Use advanced commands
 Knowledge check
 Summary
Agenda
continued
Introduction
Introduction
Although web developers build their websites by using tools
such as Node.js, ASP.NET, or Java, and run their code locally
by using tooling in code editors such as Visual Studio Code,
Python developers have some other tools at their disposal.
Scenario:

Suppose you are a crew member on a spaceship. Your


mission is to deliver some important equipment to the
International Space Station (ISS). If you're not familiar
with some of the many buttons on the spaceship's
console, it's better not to learn by the trial-and-error
method, mid-flight! Instead, you might consult the
ship's documentation to learn what buttons to push to
perform various tasks. But what if the manual is
incomplete?

Your job is to improve the ship's log by creating


interactive explanations of the ship's controls. By
working with a notebook, you can more easily explain
the uses of the various parts of the console.
What will you learn?
By the end of this module, you'll be able to:
• Create a Jupyter notebook locally.
• Run a Jupyter notebook by using Python in Visual Studio Code.
• Describe some of the ways to build a notebook.
What is the main goal?
Take advantage of notebooks as a tool to create a more
interactive learning experience.
Set up your environment
Set up your environment
There are many ways to run notebooks.
• Python
• Visual Studio Code
• Visual Studio Code Jupyter extension
Install Python
If you don't have Python installed on your computer, you
need to download it.

On a Mac, go to Python.org to install the latest version


compatible with your operating system. On Windows, go to
the Microsoft Store to download the most recent version.
If you already have Python installed, you might need to
update your installation to the latest version. Make sure you
have Python 3 by typing python3 --version in your terminal or
command line. If it is installed, the version will be displayed.
Install Visual Studio Code
Next, install Visual Studio Code.
Install the Python extension
When these two installations are complete, you'll then need
to install a Visual Studio Code extension.
Exercise
Create and run your notebook
Create and run your notebook
A notebook is an interactive environment where you can both
write code and document it.
• Create a notebook
• Create a document element in Markdown
• Run your notebook
• Create runnable code
Exercise
Use advanced commands
Use advanced commands
You have created a basic notebook with some Markdown and
a widget to start your ship.
• Create a visualization
• Perform ship calculations
Knowledge check
Question 1
What file extension does a Jupyter notebook have?

A. .ipynb
B. .opynb
C. .epynb
Question 1
What file extension does a Jupyter notebook have?

A. .ipynb
B. .opynb
C. .epynb
Question 2
Which of the following answers include types of elements in
an interactive notebook?

A. Equations and UI elements.


B. Charts and graphs.
C. Both of the above.
Question 2
Which of the following answers include types of elements in
an interactive notebook?

A. Equations and UI elements.


B. Charts and graphs.
C. Both of the above.
Question 3
Which of the following types of content blocks are available
in a Jupyter notebook?

A. HTML
B. PDF
C. Markdown
Question 3
Which of the following types of content blocks are available
in a Jupyter notebook?

A. HTML
B. PDF
C. Markdown
Summary
Summary
As an astronaut, you need to have a ship's manual on hand
to troubleshoot common problems on your spaceship.
• Create a Jupyter notebook locally.
• Run a Jupyter notebook by using Python in Visual Studio Code.
• Describe some of the ways to build a notebook.
References
This module introduced some core elements of the many
things you can do in Jupyter notebooks.
Next Steps
Explore Please tell us how you liked this
this learning path on Data workshop by filling out this
Science with Notebooks
survey:

https://aka.ms/workshopoma
tic-feedback
© Copyright Microsoft Corporation. All rights reserved.

You might also like