Reflex requires Python 3.10+.

We highly recommend creating a virtual environment for your project.

venv is the standard option. conda and poetry are some alternatives.

We will go with venv here.

Prerequisites

macOS (Apple Silicon) users should install Rosetta 2. Run this command:

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Replace my_app_name with your project name. Switch to the new directory.

Reflex is available as a pip package.

The command will return four template options to choose from as shown below.

From here select a template.

Run it in development mode:

Your app runs at http://localhost:3000.

Reflex prints logs to the terminal. To increase log verbosity to help with debugging, use the --loglevel flag:

Reflex will hot reload any code changes in real time when running in development mode. Your code edits will show up on http://localhost:3000 automatically.

Built with Reflex