How to use pretty_errors module in streamlit?

pretty_errors is a good error deal module
it can show the error friendly and simply

after import pretty_errors module, the error information is still show the old style
reload app still can not change the error show style.

Is there a way let pretty_errors work with our greate streamlit app?