Raw Input in the Notebook.ipynb
151 lines
| 5.9 KiB
| text/plain
|
TextLexer
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
Out[2]:
In [3]:
def div(x, y):
return x/y
div(1,0)
In [4]:
%debug