globalmethod(default=None, key=None, falsey=None)
This modifies a method so that occurrences of it may be taken over by functions registered in the global options. Can be used as a decorator or a function.
The default callable to use.
Key under which we register this function in the global parameters
A function to use if the option is falsey. If not provided, the default is used instead.
Allow function to be taken over by globals
>>> import daskThis example is valid syntax, but we were not able to check execution
... class Foo:
... @globalmethod(key='bar', falsey=lambda: 3)
... def bar():
... return 1
... f = Foo()
... f.bar() 1
>>> with dask.config.set(bar=lambda: 2):This example is valid syntax, but we were not able to check execution
... print(f.bar()) 2
>>> with dask.config.set(bar=False):See :
... print(f.bar()) 3
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them