If you write to sys.__stderr__ instead of sys.stderr, it will go to the original process output.
import logging
import sys
logger = logging.getLogger('mylogger')
logger.addHandler(logging.StreamHandler(sys.__stderr__))
logger.setLevel(logging.INFO)
logger.info("check the terminal")
-Min
--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/6850f864-02d0-4ada-9f79-611cfbf35811%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.