nteract / papermill

📚 Parameterize, execute, and analyze notebooks
http://papermill.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
5.99k stars 428 forks source link

Make the parameters of progress_bar specifiable by a dictionary #777

Closed wsuzume closed 9 months ago

wsuzume commented 9 months ago

Dear developers, thank you for maintaining such a wonderful tool.

🚀 Feature

I want to make the parameters of progress_bar specifiable by a dictionary.

Motivation

When executing a large number of notebooks using papermill.execute.execute_notebook, I want to set leave=False to limit the progress bar displayed by tqdm.

It seems that papermill.execute.execute_notebook calls NotebookExecutionManager by default, so if we make the progress_bar parameter specifiable as a dict, it might be possible to pass parameters to tqdm.

https://github.com/nteract/papermill/blob/5addc11f2aa36d5ed18d21fb53f4680b62cf8e3c/papermill/engines.py#L108-L112