I want to use be able to run through a list of config files and use %run to import variables from config files into a databricks notebook. But I cant find a method to dynamically change the file following %run.
I have tried specifying a parameter like this: config = './config.py' %run $config But it doesn't work. I cannot use dbutils.notebook.run(config) as I won't get access to the variables in my main notebook.
Can anything think of a way to do this?