Supressing Errors

If you want your code to appear to run with no errors, you could use the brute force approach:

import warnings
warnings.filterwarnings("ignore")

Use with caution, but can be handy if you get deprecation warnings etc

1 Like

In Jupyter, you can also use %%capture to not print anything in the cell

(here are other useful ones https://ipython.readthedocs.io/en/stable/interactive/magics.html)