Repository navigation
docs: add a uv install cell to every example notebook - #55
Merged
Merged
Conversation
Co-authored-by: Cursor <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The finetuning installation omits peft, which its LoRA examples require.
1 open finding
What changed in this PR
Adds setup cells to 11 example notebooks to support running them directly in Colab.
Changes:
- Installs
foundationforecast[plot]usinguv. - Clears Colab constraint variables for installation.
- Adds
python-dotenvto the TabPFN example.
| File | Description |
|---|---|
| docs/examples/ts-foundation-models-comparison-quickstart.ipynb | Adds comparison setup. |
| docs/examples/toto-family.ipynb | Adds Toto setup. |
| docs/examples/tirex-family.ipynb | Adds TiRex setup. |
| docs/examples/timesfm-family.ipynb | Adds TimesFM setup. |
| docs/examples/tabpfn-family.ipynb | Adds setup including dotenv. |
| docs/examples/patchtst-fm-family.ipynb | Adds PatchTST-FM setup. |
| docs/examples/forecaster-quickstart.ipynb | Adds forecasting setup. |
| docs/examples/finetuning.ipynb | Adds finetuning setup. |
| docs/examples/exogenous-variables.ipynb | Adds exogenous-variable setup. |
| docs/examples/chronos-family.ipynb | Adds Chronos setup. |
| docs/examples/anomaly-detection-forecaster-quickstart.ipynb | Adds anomaly-detection setup. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "!UV_CONSTRAINT= UV_BUILD_CONSTRAINT= uv pip install -q \"foundationforecast[plot]\"" |
Member
Author
Merging this PR will not alter performanceℹ️ 13 benchmarks have no flame graph
Comparing |
Co-authored-by: Cursor <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds an install cell after the title of every example notebook so they run as-is when opened from the docs' Open in Colab button. Previously 11 notebooks failed at the first import.
uvwithUV_SYSTEM_PYTHON=true, so this installs into the notebook kernel's Python, much faster thanpip.UV_CONSTRAINT/UV_BUILD_CONSTRAINTto its own constraint files, which have brokenuv pip installbefore (googlecolab/colabtools#5237); clearing them inline avoids that.uv run --with jupyter jupyter lab);uv pip installneeds one outside Colab.plotextra;tabpfn-familyalso addspython-dotenv.Each notebook only gains the new cell (formatting preserved). Every install line was dry-run resolved in a fresh Python 3.12 environment.
Made with Cursor