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)
Created a package to do exactly this. Have a look: https://pypi.org/project/libify/
(Relies on dbutils.notebook.run, so won't work with the Databricks community edition)