Check if we believe to be running in a Jupyter Notebook or Lab.
This method is not foolproof and might fail with any given Jupyter release.
Check if a notebook is executed with
In some visualization cases we need to be able to detect if a notebook is executed with
nbconvertto disable async loading.