From d2017b83bca849bbec5edd604d185ba36dce05eb Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Thu, 26 Mar 2026 00:48:07 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20a=C3=B1adir=20reglas=20de=20notebooks?= =?UTF-8?q?=20y=20uv=20a=20init-jupyter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Actualizar JUPYTER_RULES en setup-jupyter.sh para incluir: - Todos los notebooks van a carpeta notebooks/ o subcarpetas - Siempre usar uv para gestionar Python (no pip directamente) - Renumerar secciones de reglas --- .claude/skills/init-jupyter/setup-jupyter.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.claude/skills/init-jupyter/setup-jupyter.sh b/.claude/skills/init-jupyter/setup-jupyter.sh index ff43600..2e92ba6 100755 --- a/.claude/skills/init-jupyter/setup-jupyter.sh +++ b/.claude/skills/init-jupyter/setup-jupyter.sh @@ -293,11 +293,17 @@ pgrep -af "jupyter" | grep "$(pwd)" || cat .jupyter-port 2>/dev/null - Si no está activo → pedir al usuario: "Ejecuta `./run-jupyter-lab.sh` en otra terminal" ### 3. Gestión de notebooks +- **TODOS los notebooks van a la carpeta `notebooks/`** o subcarpetas dentro de ella - Si un notebook tiene >50 celdas → crear uno nuevo -- Nombrar descriptivamente: `01_exploracion.ipynb`, `02_limpieza.ipynb` +- Nombrar descriptivamente: `notebooks/01_exploracion.ipynb`, `notebooks/02_limpieza.ipynb` - Mantener notebooks enfocados en una tarea -### 4. Antes de código pesado +### 4. Gestión de Python +- **SIEMPRE usar `uv` para gestionar Python** (entornos, dependencias, etc.) +- Añadir paquetes con `uv add nombre_paquete` +- Nunca usar pip directamente si uv está disponible + +### 5. Antes de código pesado - Avisar al usuario - Usar `%%time` o `tqdm` para progreso