ValueError: Not enough samples to build a trace

And when outside the __main__ clause? Like in a plain Jupyter notebook cell?