Skip to content

Instantly share code, notes, and snippets.

@sbirch
Created November 27, 2015 05:03
Show Gist options
  • Select an option

  • Save sbirch/0d76ba1e487d8dec3d3a to your computer and use it in GitHub Desktop.

Select an option

Save sbirch/0d76ba1e487d8dec3d3a to your computer and use it in GitHub Desktop.
Printing output to the kernel console from IPython notebooks
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