yuuno.core.namespace module

class yuuno.core.namespace.Namespace(*args, **kwargs)[source]

Bases: traitlets.traitlets.HasTraits

Essentially a view of the current variables pushed to the user namespace.

Undefined = <object object>
as_dict() → typing.Dict[AnyStr, typing.Any][source]
items() → typing.Iterator[typing.Tuple[AnyStr, typing.Any]][source]
namespace

An instance of a Python dict.

unwatch(callback: typing.Callable[[AnyStr, typing.Any, typing.Any], NoneType]) → None[source]

Unregister a given callback

Parameters:callback – The callback to unregister
watch(callback: typing.Callable[[AnyStr, typing.Any, typing.Any], NoneType]) → None[source]

Register a new callback that pushes or undefines the object from the actual environmental namespace.

Parameters:callback – The callback to run
watchers

An instance of a Python list.