This lightweight VS Code extension supercharges your Metaflow dev workflow:
- Develop a flow
- Run the flow with Ctrl + Opt + R
- Point at a step, edit it, and spin it with Ctrl + Opt + S for quick results ⚡
- Rinse and repeat 2-3
The extension automatically:
- Detects the current function name (
deforasync def) - Saves the file before running
- Executes the command in the file’s directory
- Reuses a shared terminal session
-
Clone or copy this repository to a local folder
-
Install the VSCE packager (if not already):
npm install -g @vscode/vsce
-
Build the
.vsixpackage:vsce package
This creates a file like:
metaflow-dev-0.0.7.vsix -
Install it in VS Code:
-
Open Command Palette → Extensions: Install from VSIX...
-
Choose the generated
.vsixfile or run in terminal:code --install-extension metaflow-dev-0.0.7.vsix
-
-
Reload VS Code window. You’re good to go.
You can modify the script names or keybindings in package.json:
"keybindings": [ { "command": "extension.runPythonFunction", "key": "ctrl+alt+r" }, { "command": "extension.spinPythonFunction", "key": "ctrl+alt+s" } ]