Created
January 26, 2024 01:49
-
-
Save ronaldokun/ecc50749fce9b9b97012e4d5036a3c63 to your computer and use it in GitHub Desktop.
Revisions
-
ronaldokun created this gist
Jan 26, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/usr/bin/env python import nbformat,fire from nbconvert.preprocessors import ExecutePreprocessor def run_notebook(path): nb = nbformat.read(open(path), as_version=nbformat.NO_CONVERT) ExecutePreprocessor(timeout=600).preprocess(nb, {}) print('done') if __name__ == '__main__': fire.Fire(run_notebook)