{ } Raw JSON

bundles / jupyter_core latest / jupyter_core / utils / _external_stacklevel

function

jupyter_core.utils:_external_stacklevel

source: /jupyter_core/utils/__init__.py:56

Signature

def _external_stacklevel(internal: list[str]) → int

Summary

Find the stacklevel of the first frame that doesn't contain any of the given internal strings

Extended Summary

The depth will be 1 at minimum in order to start checking at the caller of the function that called this utility method.

Aliases

  • jupyter_core.utils._external_stacklevel