Quickstart notebook: guard install cell with importlib.util.find_spec (v1.0.6 postmortem)
Browse files
examples/quickstart.ipynb
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
{
|
| 10 |
"cell_type": "code",
|
| 11 |
"id": "2d22fcd3",
|
| 12 |
-
"source": "# Colab / fresh-kernel install.
|
| 13 |
"metadata": {},
|
| 14 |
"execution_count": null,
|
| 15 |
"outputs": []
|
|
|
|
| 9 |
{
|
| 10 |
"cell_type": "code",
|
| 11 |
"id": "2d22fcd3",
|
| 12 |
+
"source": "# Colab / fresh-kernel install. Skipped automatically if counterstrike1k is\n# already importable (e.g. local `uv add` users) so the cell is silent.\nimport importlib.util\nif importlib.util.find_spec(\"counterstrike1k\") is None:\n %pip install -q \"counterstrike1k @ git+https://github.com/AnirudhhRamesh/counterstrike1k\" datasets pandas matplotlib pillow av",
|
| 13 |
"metadata": {},
|
| 14 |
"execution_count": null,
|
| 15 |
"outputs": []
|