-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only warnings are displayed from param in ipython notebooks? #68
Comments
How this has been addressed in topographica (I guess): # Create new logger to ensure param logging shows in notebooks
iplogger = logging.getLogger('ip-param')
iplogger.addHandler(logging.StreamHandler(stream=sys.stderr))
iplogger.propagate = False
param.parameterized.logger = iplogger |
Does that seem like something that could go into param instead? If so, I'm happy to see things move out of Topographica and into lower-level libraries where they make sense... |
You can move this to param if you like. This was added because param logging behaved badly in IPython Notebooks without it. If you have a better idea of how info messages should behave in notebooks, go ahead and implement it. |
Check if this is still a problem |
Not sure if this is the right ticket, but it seems not possible to hide
Only the following hack at the end of the execution works:
|
Indeed param warnings are using Python's |
I think the Aug 11, 2020 issue is the opposite of this one; both are worth addressing, but separately (e.g. by making Param warnings use |
Logging seems to behave differently under ipython notebook vs. python
Python:
In a notebook, however, I only get the warning message (not the info):
The text was updated successfully, but these errors were encountered: