This is a development version (9.14.0.dev) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / 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