1/5
## Working with IPython (Google Colab) Cells (Jupyter Notebook) In this lesson, we will learn how to work with cells in Google Colab or Jupyter Notebook. Each cell represents a unit of code that we can write and execute. To add code to a cell, we can simply type in the cell like this: ```python print("hi") ``` Then, we can go to the "Runtime" menu and choose "Run selection." Google Colab and Jupyter Notebook provide a variety of ways to run code. * To run the whole cell, we can click on the play button icon in the cell. * To run only the line our cursor is on, we can use the "Run selection" option from the "Runtime" menu. * To run all cells, we can use "Run all" from the "Runtime" menu. We can also run the whole cell using keyboard shortcuts: * **Shift + Enter:** Runs the whole cell and creates a new one below it. * **Ctrl + Enter:** Runs the whole cell. In addition to code, cells can also contain comments. These are lines that are not executed by the program. Comments are often used to explain what the code does. Comments in Google Colab and Jupyter Notebook start with the hash symbol (#). For example, we could add a comment like this: ```python # Hi, I'm a comment! ``` Anything after the # symbol will not be executed.
A practical introduction to working with cells in Google Colab (Jupyter Notebook). This lesson covers the basics of writing and running Python code within a cell, using the play button, keyboard shortcuts, and adding comments.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on January 14, 2025
Duration: 2h 20min
Duration: 1h 51min
Duration: 58min
Duration: 2h 23min
Duration: 53min
Duration: 2h 24min
Duration: 28min
Duration: 1h 54min
Duration: 11min
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on January 14, 2025
Testimonials
Read what our students have to say about this course.
Chainlink
Chainlink
Gustavo Gonzalez
Solutions Engineer at OpenZeppelin
Francesco Andreoli
Lead Devrel at Metamask
Albert Hu
DeForm Founding Engineer
Radek
Senior Developer Advocate at Ceramic
Boidushya
WalletConnect
Idris
Developer Relations Engineer at Axelar