I’m attempting to suppress warnings from printing in the terminal. One example of a warning I’m trying to silence:
WARNING:bokeh.io:The webdriver raised a TimeoutException while waiting for a ‘bokeh:idle’ event to signify that the layout has rendered. Something may have gone wrong.
I apologize if this is documented somewhere, but I’m struggling to find it. Thanks for any pointers!
I'm attempting to suppress warnings from printing in the terminal. One example of a warning I'm trying to silence:
WARNING:bokeh.io:The webdriver raised a TimeoutException while waiting for a 'bokeh:idle' event to signify that the layout has rendered. Something may have gone wrong.
I apologize if this is documented somewhere, but I'm struggling to find it. Thanks for any pointers!
Hi, has anyone been able to successfully silence BokehUserWarning warnings? I’ve tried to silence them with warnings.simplefilter as well as setting the BOKEH_LOG_LEVEL to ‘fatal’. I
Maybe there is something different happening in the embedded case? I don’t know offhand Your best bet to get assistance is to provide a complete Minimal Reproducible Example and instructions to reproduce, to avoid wasting effort with speculation.
What is the standard way to silence BokehUserWarnings and suppress them from being printed to the console? It’s difficult for me to provide a minimal reproducible example in this case as it is more of a general question.
Actually, I forgot, BOKEH_LOG_LEVEL is purely for the log level in the browser (original historical name, too late to change now). For the python logging it is more specifically:
BOKEH_PY_LOG_LEVEL=critical
I am actually not any sort of expert about the python logging system API and filtering, so glad you found the programmatic solution.
Yes, I had also looked at the BOKEH_PY_LOG_LEVEL environment variable. I believe I read it was set to ‘none’ on default. Regardless, at least the solution I posted seems to work for embedded servers.