<ipython-input-53-eaf9205d849e>:45: UserWarning: frames=<generator object bubble_sort at 0x7819385ce640> which we can infer the length of, did not pass an explicit *save_count* and passed cache_frame_data=True. To avoid a possibly unbounded cache, frame data caching has been disabled. To suppress this warning either pass `cache_frame_data=False` or `save_count=MAX_FRAMES`. anim = animation.FuncAnimation(
/usr/local/lib/python3.11/dist-packages/matplotlib/animation.py:1762: UserWarning: Can not start iterating the frames for the initial draw. This can be caused by passing in a 0 length sequence for *frames*. If you passed *frames* as a generator it may be exhausted due to a previous display or save. warnings.warn(