Files
fn_registry/bash/functions/pipelines/export_analysis_pdfs.md
T
egutierrez 5f4f1f7508 docs: params/output semántico en 506 funciones para composabilidad
Añade campos params y output al frontmatter YAML de las 506 funciones del registry.
Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico)
y cada función describe qué produce su output. Permite a agentes razonar sobre
cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
2026-04-05 18:45:16 +02:00

1.7 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
export_analysis_pdfs pipeline bash pipelines 1.0.0 impure export_analysis_pdfs(nombre: string, [pattern: string]) -> void Exporta todos los notebooks de un analisis Jupyter a PDF. Instala nbconvert y playwright automaticamente si no estan presentes.
pipeline
jupyter
pdf
export
nbconvert
launcher
assert_command_exists_bash_shell
install_nbconvert_bash_infra
notebook_to_pdf_bash_infra
false error_go_core
name desc
nombre nombre del análisis en analysis/{nombre}/
name desc
pattern glob de notebooks a exportar (default: notebooks/*.ipynb)
sin salida directa; genera PDFs en notebooks/pdf/ false
bash/functions/pipelines/export_analysis_pdfs.sh

Ejemplo

# Exportar todos los notebooks de un analisis
./export_analysis_pdfs.sh finanzas

# Con pattern especifico
./export_analysis_pdfs.sh ml "notebooks/01_*.ipynb"

# Via fn run
fn run export_analysis_pdfs finanzas
fn run export_analysis_pdfs ml "notebooks/01_*.ipynb"

Flujo

  1. assert_command_exists uv — verifica que uv esta disponible
  2. install_nbconvert — instala nbconvert y playwright con chromium (idempotente)
  3. notebook_to_pdf — convierte notebooks al patron indicado a PDF en notebooks/pdf/

Notas

El analysis debe existir previamente en analysis/{nombre}/ con un venv inicializado. Los PDFs se generan en analysis/{nombre}/notebooks/pdf/ por defecto. El pipeline usa set -euo pipefail — cualquier fallo detiene la ejecucion.