def run_notebook(filename): export = Exporter() execute = ExecutePreprocessor() execute.timeout = 600 export.register_preprocessor(execute, True) export.from_filename(filename)