code: def warning_free_pause():
      
      import matplotlib.pyplot as plt
  
      with warnings.catch_warnings():
          warnings.filterwarnings("ignore",
                                  message="Using default event loop until "
                                          "function specific to this GUI is "
                                          "implemented")
          plt.pause(0.0001)
docs: Issue a matplotlib pause without the warning.