0% found this document useful (0 votes)
75 views2 pages

Lab - Jupyter Notebook - The Basics: Objective

This document provides instructions for a hands-on lab to learn the basics of using Jupyter Notebooks, including how to create and run code cells, insert new cells, and add Markdown cells to add explanatory text.
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)
75 views2 pages

Lab - Jupyter Notebook - The Basics: Objective

This document provides instructions for a hands-on lab to learn the basics of using Jupyter Notebooks, including how to create and run code cells, insert new cells, and add Markdown cells to add explanatory text.
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/ 2

6/4/2021 https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0105EN-SkillsNetwork/labs/Module2_Coursera/Lab-JupyterNotebook-TheBasics.

Lab - Jupyter Notebook - The Basics


Effort: 20 mins

Objective
In this hands-on lab you will learn how to create a different markdown cells.

Special note about the lab environment:

These Jupyter notebooks labs now use the latest environment: JupyterLab, which uses the same .ipynb Jupyter notebook files.

Exercise 1 - Create a new notebook in Python

1. In the next section click on Open Tool to access the Skills Network virtual lab environment.

Exercise 2 - Write and execute code

1. In your new empty notebook (from Exercise 1), click within the gray code cell and write some code, like 1 + 1.

2. Execute the code, by either clicking the Play button in the menu above the notebook, or by pressing Shift+Enter on your notebook.

3. You should see in the output, 2.

4. Try executing other code (try simple math operations).

Great! Now you know how to write and run code in Jupyter Notebooks.

Exercise 3 - Create new cells

1. In your Jupyter notebook, first click on any of the existing cells to select the cell.

2. From the menu, click on Insert, then Insert Cell Above or Insert Cell Below.

3. Great! Now you know how to insert new cells in Jupyter Notebooks. Note you can use the keyboard shortcuts: [a] - Insert a Cell Above;
[b] - Insert a Cell Below.

Exercise 4 - Create Markdown cells and add text

In your notebook, click on any code cell, and in the drop-down menu in the menu above, change the cell type from Code to Markdown. As you'll
notice, you cannot create Markdown cells without first creating cells and converting them from Code to Markdown.

In the Markdown cell, write some text like My Title.

To render the Markdown text, make sure the cell is selected (by clicking within it), and press Play in the menu, or Shift+Enter.

Your Markdown cell should now be rendered!

To edit your Markdown cell, double-click anywhere within the cell. Note you can use the keyboard shortcut: [m] - Convert Cell to Markdown

Please note that practice exercises are not graded, and you do not need submit anything.

Passed 100%

This course uses a third-party tool, Lab - Jupyter Notebook - The Basics, to enhance your learning experience. The tool will reference basic
information like your name, email, and Coursera ID.

Change log
Date Version Changed by Change Description

2020-12-01 2.1 Aije Egwaikhide Updated exercise 1 for accessing SN labs from Coursera

https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0105EN-SkillsNetwork/labs/Module2_Coursera/Lab-JupyterNotebook-TheBasics.md.html?or… 1/2
6/4/2021 https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0105EN-SkillsNetwork/labs/Module2_Coursera/Lab-JupyterNotebook-TheBasics.…

Date Version Changed by Change Description

2020-10-01 2.0 Malika Singla Moved lab to course repo in GitLab

© IBM Corporation 2020. All rights reserved.

https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0105EN-SkillsNetwork/labs/Module2_Coursera/Lab-JupyterNotebook-TheBasics.md.html?or… 2/2

You might also like