magics module

PipeMagic.add_traits(**traits)

Dynamically add trait attributes to the HasTraits instance.

PipeMagic.arg_err(func)

Print docstring if incorrect arguments were passed

PipeMagic.default_option(fn, optstr)

Make an entry in the options_table for fn, with value optstr

PipeMagic.format_latex(strng)

Format a string for latex inclusion.

PipeMagic.has_trait(name)

Returns True if the object has a trait with the specified name.

PipeMagic.hold_trait_notifications()

Context manager for bundling trait change notifications and cross validation.

PipeMagic.notify_change(change)

PipeMagic.observe(handler[, names, type])

Setup a handler to be called when a trait changes.

PipeMagic.on_trait_change([handler, name, …])

DEPRECATED: Setup a handler to be called when a trait changes.

PipeMagic.parse_options(arg_str, opt_str, …)

Parse options passed to an argument string.

PipeMagic.piper([line, cell])

.

PipeMagic.run_cmd(execute, cell_value[, …])

Execute or evaluate the line or cell contents

PipeMagic.set_trait(name, value)

Forcibly sets trait attribute, including read-only attributes.

PipeMagic.setup_instance(*args, **kwargs)

This is called before self.__init__ is called.

PipeMagic.trait_metadata(traitname, key[, …])

Get metadata values for trait by key.

PipeMagic.trait_names(**metadata)

Get a list of all the names of this class’ traits.

PipeMagic.traits(**metadata)

Get a dict of all the traits of this class.

PipeMagic.unobserve(handler[, names, type])

Remove a trait change handler.

PipeMagic.unobserve_all([name])

Remove trait change handlers of any type for the specified name.

PipeMagic.update_config(config)

Update config and load the new values