Expected Behavior
Loading a model with verbose=False should not print things.
Current Behavior
verbose=False has no effect in notebooks (I tested with VS Code notebooks, but I think it is ipykernel related)
Steps to Reproduce
Just load a model with verbose=False and observe output in a notebook environment.
How to fix
The patch given in the ipykernel issue below fixes the issue for me (but requires me to do my own override of stdout and stderr since the patch also causes suppress_stdout_stderr to crash as currently written). A real fix might involve integrating this into suppress_stdout_stderr directly.
ipython/ipykernel#795
thanks!
Expected Behavior
Loading a model with verbose=False should not print things.
Current Behavior
verbose=False has no effect in notebooks (I tested with VS Code notebooks, but I think it is ipykernel related)
Steps to Reproduce
Just load a model with verbose=False and observe output in a notebook environment.
How to fix
The patch given in the ipykernel issue below fixes the issue for me (but requires me to do my own override of stdout and stderr since the patch also causes
suppress_stdout_stderrto crash as currently written). A real fix might involve integrating this intosuppress_stdout_stderrdirectly.ipython/ipykernel#795
thanks!