5f4f1f7508
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.
1.7 KiB
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. |
|
|
false | error_go_core |
|
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
assert_command_exists uv— verifica que uv esta disponibleinstall_nbconvert— instala nbconvert y playwright con chromium (idempotente)notebook_to_pdf— convierte notebooks al patron indicado a PDF ennotebooks/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.