find keywords in jupyter cells and run (Problem of simultanous runs)
I have successfully made several functions that search inputted keywords (they can be comments, codes, markdowns, or raw codes) inside the current jupyter ipynb file and run any cells containing those keywords. I am satisfied with my work but one problem is that running cells by Javascript command inside a loop will simultaneously run selected cells. This is not a problem for small processes but I believe that might cause problem for heavy process. Does anyone have any suggestion about how to make these runs sequential and orderly so that each run wait till the previous run is finished? Also if anyone has a better idea about searching and running jupyter cells with keywords I appreciate your suggestion.