I use Jupyter Notebook to run a series of experiments that take some time.
Certain cells take way too much time to execute so it\'s normal that I\'d like to close the browse
If you've set all cells to run and want to periodically check what's being printed, the following code would be a better option than %%capture. You can always open up the log file while kernel is busy.