Skip to content

Instantly share code, notes, and snippets.

@ScinDBad
Last active October 9, 2024 15:30
Show Gist options
  • Save ScinDBad/5961a64a35d2974edd74bbccfbae514c to your computer and use it in GitHub Desktop.
Save ScinDBad/5961a64a35d2974edd74bbccfbae514c to your computer and use it in GitHub Desktop.
A short guide to start python projects and jupyter notebooks in Project IDX by Google. By Adrián Vinueza

Guide: Developing Jupyter Notebooks in Google IDX

What is Google IDX?

Google IDX (Integrated Development Experience) is a cloud-based integrated development environment (IDE) provided by Google, designed to simplify the setup, management, and collaboration of projects entirely in the cloud. IDX shows promising potential to establish itself over time, offering an intriguing cloud alternative similar to Visual Studio Code or Anaconda.

Creating Jupyter Notebooks or Python Projects in Google IDX

Jupyter Notebooks are widely used for interactive computing and data analysis, ideal for tasks ranging from data exploration to developing machine learning models. Setting up your environment in Google IDX for Jupyter Notebooks or Python projects is straightforward and provides the advantage of cloud-based programming.

  1. Go to https://idx.dev/ and get started.

image

  1. Click on "See all templates".

image

  1. Select "Misc".

image

  1. Click on "Blank Workspace".

image

  1. Name your workspace and create it.

image

  1. In IDX, navigate to .idx/dev.nix and enable:
    • pkgs.python311
    • pkgs.python311Packages.pip

image

  1. Click on "Rebuild Environment".

  2. Open a new terminal (Ctrl+Shift+` ) to verify the Python version and installed packages with pip

image

  1. Create and activate a virtual environment (venv).

  2. Install Python libraries/frameworks/dependencies using pip in the terminal.

image

  1. Create a jupyter notebook by clicking new file icon on explorer panel and select the kernel (venv). Allow to install the Jupyter extensions.

image

image

  1. Write code directly or ask Gemini (Ctrl + i) to assist and run it.
    • Some dependencies may install the first time you run the code.

image

image

Now You have a basic python cloud-environment on Google IDX ready for developing jupyter notebooks or python scripts.

Take a look at a machine learning project I developed at IDX a couple of weeks ago: https://github.com/ScinDBad/churn_prediction_fitness

@gbraad
Copy link

gbraad commented Oct 9, 2024

open Developer Tools and you will likely see the same issues I wrote about earlier this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment