MCPcopy
hub / github.com/nalepae/pandarallel / is_notebook_lab

Function is_notebook_lab

pandarallel/progress_bars.py:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def is_notebook_lab() -> bool:
45 try:
46 shell: str = get_ipython().__class__.__name__ # type: ignore
47
48 # Shell: Google Colab
49 # TerminalInteractiveShell: Terminal running IPython
50 # ZMQInteractiveShell: Jupyter notebook/lab or qtconsole
51 return shell in {"Shell", "ZMQInteractiveShell"}
52 except NameError:
53 # Probably standard Python interpreter
54 return False
55
56
57class ProgressBarsConsole(ProgressBars):

Callers 1

get_progress_barsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…