Created
November 27, 2015 05:03
-
-
Save sbirch/0d76ba1e487d8dec3d3a to your computer and use it in GitHub Desktop.
Printing output to the kernel console from IPython notebooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from IPython import get_ipython | |
| # Levels less than warn (info, debug, etc.) are surpressed in the console output. | |
| get_ipython().kernel.log.warn("Hello, world!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment