import nbinteract as nbi
import numpy as np
def hist_function(mean, sd, size=1000):
    '''
    Returns 1000 values picked at random from the normal
    distribution with the Mean value and SD given.
    '''
    return np.random.normal(loc=mean, scale=sd, size=1000)


options = {
    'title': 'Histogram',
    'xlabel': 'Mean value (mean)',
    'ylabel': 'Standard Deviation (sd)',
    'bins': 10
}

layouts = {
    'plot_height': '480px',
    'plot_width': '800px',
}

hist_chart = nbi.hist(
    hist_function,
    mean=(0, 10),
    sd=(0.2, 2.0, 0.2),
    options=options,
    layouts=layouts
)

hist_chart