papermill
papermill copied to clipboard
add CLI's log_level parameter to execute_notebook function
Please add log_level as a parameter to the execute_notebook function so that logging can be customized at runtime.
You can control this by setting the logging basic config: logging.basicConfig(level=log_level, format="%(message)s"), or by setting papermill or nbconvert's logger specifically at runtime. The reason we only set the basic config in the CLI option is because we can't know if we're messing with a parent logging configuration inside execute_notebook. Whereas in the CLI we know we're the entrypoint for the python process and no parent logging configs are set.