def __init__(self, p, verbose=False):
        n = len(p)
        p = p.astype(float) / sum(p)
        self._cdf = np.cumsum(p)
Clicking on the terminal toggle button raises messagebox on error
dataset/ETHPy150Open ml-slac/deep-jets/utils/sampling.py/MultinomialSampler.__init__--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/app/qt/tests/test_application.py/TestGlueApplication.test_messagebox_on_disabled_terminal