-
Notifications
You must be signed in to change notification settings - Fork 10
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 log.error gets prints in jupyter notebook tutorial. log.debug produces no output. #18
Comments
I'm in the same boat: little Python experience, no Jupyter experience. I noticed that my print statements are going to the core log for HA, or at least attempting to, which makes sense. But, it would be nice if there was an explanation in the README on how to redirect output to somewhere easily readable. |
I had a similar issue where log statements weren't printing, and I figured out it was due to the log level that the logging module sees. I think when loading the jupyter kernel, it's supposed to set the level to
Either way, I was able to get the logger myself and set the level and format string.
In case there are any other effects, you can set a higher logging level, like I didn't do any further debugging, but if it helps I'm running python 3.10.0 on MacOS, and running Home Assistant OS |
I'm facing the same issue. @zrsmithson suggestion also worked here. |
I also see this same issue, although you have to enable arbitrary imports to import logging to change this in the first place |
Trying out pyscript with the jupyter notebook tutorial and none of the log.debug messages print anything. I'm connected successfully and can read states but only log.errors prints results in the notebook and log.warn is not defined. I've never used jupyter before and have little python experience so I'm sorry if I've missed something obvious.
The text was updated successfully, but these errors were encountered: