m96
New Contributor II

Old thread, but I wrote a module to do just this. Check it out: https://pypi.org/project/libify/

(Utilizes dbutils.notebook.run, so doesn't work with the Databricks community edition)