phenotypic.tools_.panel_.in_jupyter#

phenotypic.tools_.panel_.in_jupyter() bool[source]

Detect whether code is running inside a Jupyter notebook.

This is stricter than in_ipython() — it returns True only for notebook kernels (ZMQInteractiveShell), not plain IPython terminals.

Returns:

True when running in a Jupyter notebook kernel.

Return type:

bool