Tutorial
Getting started with Python

Getting Started with Python

Python is fully supported on Devboxes and Repositories. It leverages Docker to run a configurable Python container, while also bringing IntelliSense and support for Python package managers.

In this tutorial, we will showcase two different approaches you can use to get started with Python in CodeSandbox: starting from a template or importing an existing Python project.

Starting from a template

CodeSandbox provides a growing collection of Python templates that may be useful depending on your use case.

In case you want a fresh, blank environment to start building a project from scratch, you can use our Python starter (opens in a new tab). Otherwise, you will find our existing Python templates in the "Python" tab of the template library (opens in a new tab).

After forking one of these templates, you will probably want to open a terminal (which you can find under DevTools, on the top right) to run pythoncommands.

Importing an existing repository

You can also import one of your existing Python repositories from GitHub into CodeSandbox by following the steps below.

1. Import repository

From the CodeSandbox dashboard, click "Import from GitHub" and input the URL of your repository. If you are missing the required permissions, you should get a prompt asking you to update them.

Import from GitHub