ploomber / ploomber-engine

A toolbox 🧰 for Jupyter notebooks 📙: testing, experiment tracking, debugging, profiling, and more!
https://engine.ploomber.io
BSD 3-Clause "New" or "Revised" License
59 stars 14 forks source link

Inspection and type of parameters #87

Closed vijayvammi closed 2 months ago

vijayvammi commented 7 months ago

Hello Eduardo,

Thanks for the ploomber engine. I integrated it in my projects and it works well.

Is there a way to inspect a notebook to get the parameters needed by the notebook and also their types? If that is possible, it would be nicer to get the schema definition if they are richer types like dataclasses or pydantic models.

Cheers, Vijay

edublancas commented 7 months ago

hi @vijayvammi,

There's currently no way to do this; I remember seeing something like this in papermill's codebase, so if you have time, we could port the code over here!

Should be pretty straightforward (just remember to add the license at the top of the file)

let me know if you're interested!