Recipes for everything else!
DotDict
(dct
) :: dict
Enable dot access to a dictionary. e.g. dict.key1.key2.key3
suppress_stdout
()
Suppress any stdout in this with
block
Show
(things
:dict
)
Show multiple HTML reprs in the same cell
coalesce
(*args
, default
=None
)
Provide same function as C# and JS ??
operator
show_plotly
(fig
)
Render plotly figs with nbdev
Hook
(m
, hook_func
, is_forward
=True
, detach
=True
, cpu
=False
, gather
=False
)
Create a hook on m
with hook_func
.
Learner.show_activations
(img
)
decorate_all_methods_with
(decorators
)
Decorate all methods of a class with a list of decorators
decorate_function_with
(decorators
)
Apply a list of decorators to a function
dict_generator
(indict
, pre
=None
)
Recursively traverse a dictionary of unknown depth and return flat lists.
Useful for generating API endpoint strings from JSON-like