Set Up Your Python IDE
Get your editor configured for building ML pipelines with the Michelangelo SDK. This takes about 5 minutes if you've already run poetry install.
Prerequisites
Before configuring your IDE, make sure you've installed the Python dependencies:
cd <repo-root>/python
poetry install
This creates a .venv directory with all Michelangelo packages. Your IDE needs to use this environment for autocomplete and import resolution to work.
Tip: Replace
<repo-root>with the path where you cloned the Michelangelo repository (e.g.,~/michelangelo).
VS Code / Cursor
- Install the Python extension.
- Open the
python/directory from the repository root. - Select the Poetry virtual environment as your Python interpreter:
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Linux/Windows) - Type "Python: Select Interpreter"
- Choose the
.venvenvironment created bypoetry install
- Press
- Verify autocomplete works by opening a Python file and typing
import michelangelo.
PyCharm
- Open the
python/directory as your project root. - Go to Settings > Project > Python Interpreter.
- Click the gear icon and select Add Interpreter > Existing.
- Point to the Poetry environment (usually at
python/.venv/bin/python). - PyCharm should automatically detect imports and provide autocomplete for the Michelangelo SDK.
Verifying Your Setup
After configuring your editor, confirm everything works by checking that you get autocomplete for these imports:
import michelangelo.uniflow.core as uniflow
@uniflow.task()
def hello():
print("IDE setup working!")
If your editor can't resolve the michelangelo import:
- Make sure you've run
poetry installin thepython/directory - Confirm your IDE is using the
.venvPython interpreter (not your system Python) - Try reloading the IDE window
What's next?
- Ready to build? Set up your local sandbox and follow Getting Started with Pipelines
- Contributing to Michelangelo's Go backend? See Go and Bazel Development Setup