You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / core / magic / validate_type

function

IPython.core.magic:validate_type

source: /IPython/core/magic.py :150

Signature

def   validate_type ( magic_kind : str )  →  None

Summary

Ensure that the given magic_kind is valid.

Extended Summary

Check that the given magic_kind is one of the accepted spec types (stored in the global magic_spec), raise ValueError otherwise.

Aliases

  • IPython.core.magic.validate_type