Utilities (utils)

Utilities (utils)#

Data:

MISSING

Sentinel to indicate the lack of a value when None is ambiguous.

Functions:

get_in(keys, nested_dict[, default, factory])

open_notebook.utils.MISSING = MISSING#

Sentinel to indicate the lack of a value when None is ambiguous.

open_notebook.utils.get_in(keys: Sequence[Any], nested_dict: Mapping[Any, Any], default: Any = MISSING, factory: Callable[[], Any] | None = None) Any[source]#
>>> foo = {"a": {"b": {"c": 1}}}
>>> get_in(["a", "b"], foo)
{'c': 1}