{ } Raw JSON

bundles / jupyter_core latest / jupyter_core / utils / deprecation

function

jupyter_core.utils:deprecation

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

Signature

def deprecation(message: str, internal: str | list[str] = jupyter_core/) → None

Summary

Generate a deprecation warning targeting the first frame that is not 'internal'

Extended Summary

internal is a string or list of strings, which if they appear in filenames in the frames, the frames will be considered internal. Changing this can be useful if, for example, we know that our internal code is calling out to another library.

Aliases

  • jupyter_core.utils.deprecation