Hide cache deprecation warning

I am on 1.19.0 but because we cannot use hash_funcs anymore, I would like to keep using the deprecated cache for now. Streamlit shows a very prominent deprecation warning in the app. How can I hide it? I have tried googling and looking on the forums here but haven’t found a solution.

Hey @BramVanroy, unfortunately, there isn’t a way to do this. I’ll share your post about hash_funcs internally and see if anyone has ideas for a way to implement this with the newer caching methods.

Thanks Caroline. Hm that’s unfortunate though because what is the point of deprecation if we cannot effectively use it in practice anymore (because there’s a massive deprecation warning on users’ screen). It might be better in the future for all deprecated feature to have the option to not show the deprecation notice.

Hello @BramVanroy,

did you try this? (just disabling all warnings)

import warnings