This module contains basic helper utilities such as optimized compression of arbitrary data objects `save` and `load`, code timing `timer`, and fine-level plotting control `figParams`, as well as nbdev project tools (used to create this website, found at https://nbdev.fast.ai/).
@timer
def say_hi():
'''
Example function for `timer`.
Will show the correct docs thanks to `wraps`.
'''
print('hi')
say_hi()
say_hi(return_time=True)
filesize('setup.py')
a=[0]
save(a,fname='data.gz')
load(fname='data.gz',delete=True)
rng=RNG(seed=0,update=True)
random(0,1)
normal([0,1],[1,2],shape=(10,2))
print(random(x=0,y=1,shape=(1,2)))
print(normal(x=[0,10],y=[1,1],shape=None))
print(choice(['a','b','c'],1))