logging
Data Models
setup_logger
setup_logger (name:str='app', level:int=20)
*Create a logger that works in Jupyter (threads) and normal Python scripts. - In notebooks: writes to sys.__stdout__ to avoid IPython’s capture issues - In scripts: writes to sys.stdout*
in_ipython
in_ipython ()
call_with_visible_output
call_with_visible_output (fn, *args, **kwargs)
Run fn(args, **kwargs) while capturing stdout/stderr, then mirror that output to the real stdout/stderr so it appears in Jupyter and in normal scripts.*