Skip to content
Curació Dades CSUC edited this page Mar 12, 2024 · 1 revision

Using Python with Google Colab and Jupyter Notebook

Introduction

Google Colab and Jupyter Notebook are popular platforms for running Python code interactively in a web browser. This wiki page provides instructions on how to use Python with both platforms, including setting up environments, running code cells, and utilizing various features.

Using Google Colab

Accessing Google Colab:

  1. Navigate to Google Colab in your web browser: https://colab.research.google.com/.
  2. Sign in to your Google account if prompted.

Creating a New Notebook:

  1. Click on "New notebook" to create a new Python notebook.
  2. You can also upload existing notebooks from your local machine.

Running Code Cells:

  1. Write or paste your Python code into a code cell.
  2. Click the "play" button or press Shift+Enter to execute the code cell.
  3. Output will be displayed below the code cell.

Installing Packages:

  1. Use the !pip install command to install Python packages.

Clone this wiki locally