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, nested_dict, default=MISSING, factory=None)[source]#
>>> foo = {"a": {"b": {"c": 1}}}
>>> get_in(["a", "b"], foo)
{'c': 1}