ArnieRamesh commited on
Commit
03e5bbf
·
verified ·
1 Parent(s): 769bc77

Quickstart notebook: guard install cell with importlib.util.find_spec (v1.0.6 postmortem)

Browse files
Files changed (1) hide show
  1. examples/quickstart.ipynb +1 -1
examples/quickstart.ipynb CHANGED
@@ -9,7 +9,7 @@
9
  {
10
  "cell_type": "code",
11
  "id": "2d22fcd3",
12
- "source": "# Colab / fresh-kernel install. Local users with `uv add` already done can skip this cell.\n%pip install -q \"counterstrike1k @ git+https://github.com/AnirudhhRamesh/counterstrike1k\" datasets pandas matplotlib pillow av",
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": []