Repository navigation
docs: add a uv install cell to every example notebook - #389
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The cryptocurrency notebook places its installation cell before rather than after its title.
1 open finding
What changed in this PR
Adds Colab-compatible uv installation cells to all example notebooks, including notebook-specific dependencies and extras.
Changes:
- Adds installation cells after notebook titles.
- Clears Colab’s conflicting
uvconstraint variables. - Updates GIFT-Eval’s existing installation command.
| File | Description |
|---|---|
agent-quickstart.ipynb |
Installs TimeCopilot and async support. |
anomaly-detection-forecaster-quickstart.ipynb |
Installs TimeCopilot. |
aws-bedrock.ipynb |
Installs async and environment dependencies. |
chronos-family.ipynb |
Installs TimeCopilot. |
cryptocurrency-quickstart.ipynb |
Installs TimeCopilot and KaggleHub. |
custom-ensembles.ipynb |
Installs TimeCopilot. |
dask.ipynb |
Installs distributed and async dependencies. |
explaining-foundation-models-and-ensembles.ipynb |
Installs TimeCopilot and async support. |
finetuning.ipynb |
Installs TimeCopilot. |
forecaster-quickstart.ipynb |
Installs TimeCopilot. |
gift-eval.ipynb |
Replaces %pip with the uv command. |
google-llms.ipynb |
Installs async and environment dependencies. |
llm-providers.ipynb |
Installs async and environment dependencies. |
pandas_baseline.ipynb |
Installs TimeCopilot and async support. |
patchtst-fm-family.ipynb |
Installs TimeCopilot. |
patchtst-fm.ipynb |
Installs TimeCopilot and async support. |
pyspark.ipynb |
Installs distributed and async dependencies. |
ray.ipynb |
Installs distributed and async dependencies. |
sktime.ipynb |
Installs sktime and async dependencies. |
t0-family.ipynb |
Installs TimeCopilot. |
tabpfn-family.ipynb |
Installs the environment dependency. |
timesfm-family.ipynb |
Installs TimeCopilot. |
tirex-family.ipynb |
Installs TimeCopilot. |
toto-family.ipynb |
Installs TimeCopilot. |
ts-foundation-models-comparison-quickstart.ipynb |
Installs TimeCopilot. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| @@ -1,5 +1,15 @@ | |||
| { | |||
| "cells": [ | |||
| { | |||
Member
Author
There was a problem hiding this comment.
Fixed in 3f0a88d: the install cell now follows the title.
Co-authored-by: Cursor <cursoragent@cursor.com>
Merged
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 24 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.timecopilot[distributed]for Dask/Ray/Spark,timecopilot[gift-eval](replacing the old%pipcell), plusnest-asyncio,python-dotenv,kagglehubandsktimewhere imported.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