#!/usr/bin/env python # coding: utf-8 # # Using `raw_input` and `%debug` in the Notebook # The Notebook has added support for `raw_input` and `%debug`, as of 1.0. # In[1]: # Python 3 compat import sys if sys.version_info[0] >= 3: raw_input = input # In[2]: name = raw_input("What is your name? ") name # In[3]: def div(x, y): return x/y div(1,0) # In[4]: get_ipython().run_line_magic('debug', '')