Development repository for contributors working on the ZenML VSCode Tutorial Extension.
-
Clone & install:
git clone https://github.com/zenml-io/vscode-tutorial-extension cd vscode-tutorial-extension npm install && npm run compile
-
Open in VS Code and reopen in dev container when prompted
-
Test the extension: Press
F5
or use Run and Debug panel → "Run Extension"
The extension runs in two places:
- Development (this repo)
- User-facing (vscode-tutorial repo)
After making changes, you need to:
-
Build extension:
npm run buildExtension:replace
This packages the extension and updates both repos (requires repos to be side-by-side)
-
Test in user environment: Test changes in both GitHub Codespaces and local dev containers
- Extension code: Main TypeScript files
- Tutorial content:
pipelines/
directory - Tutorial structure:
tutorialMetadata.json
- Entry point:
extension.ts
→Tutorial
class
Quick text edits:
- Uncomment the "edit text" button in WebView HTML
- Edit markdown files directly
- Save (
Cmd+S
) → Reload extension (Cmd+R
)
Adding/reorganizing steps:
- Edit
tutorialMetadata.json
- Each section has steps with optional
doc
(markdown) andcode
(Python) files
The user-facing repository uses a pre-built Docker image for faster startup.
To update the image:
- Switch to
docker-image-build
branch - Build and push following Docker's guide
- Update
devcontainer.json
to reference new image:"image": "zenml/tutorial:latest"