ePSproc util functions for environment checks and related.
28/09/20 v1 Notebook checking fn. added, use for some types of display settings.
Check if code is running in Jupyter Notebook.
Taken verbatim from https://exceptionshub.com/how-can-i-check-if-code-is-executed-in-the-ipython-notebook.html Might be a better/more robust way to do this?
Also added optional “warn = ‘once’”, set ‘once’ or ‘ignore’ to control warnings in notebook env., see https://stackoverflow.com/a/9031848 NOTE: this is currently not working globally (at import), need to look at scope here, see https://docs.python.org/3/library/warnings.html
To set manually in a notebook:
` import warnings warnings.filterwarnings('ignore') `