text: First and foremost, the IPython Notebook is an interactive environment for writing and running code. IPython is capable of running code in a wide range of languages. However, this notebook, and the default kernel in IPython 2.0, runs Python code.
  Run a code cell using
  Shift-Enter or pressing the button in the toolbar above:
  a = 10
  print(a)
  There are two other keyboard shortcuts for running code:
  Alt-Enterruns the current cell and inserts a new one below.
  Ctrl-Enterrun the current cell and enters command mode.
  Code is run in a separate process called the IPython Kernel. The Kernel can be interrupted or restarted. Try running the following cell and then hit the button in the toolbar above.
  import time time.sleep(10)
  If the Kernel dies you will be prompted to restart it. Here we call the low-level system libc.time routine with the wrong argument via ctypes to segfault the Python interpreter:!!
  The "Cell" menu has a number of menu items for running code in different ways. These includes:
  The kernel maintains the state of a notebook's computations. You can reset this state by restarting the kernel. This is done by clicking on the in the toolbar above.
  The stdout and stderr streams are displayed as text in the output area.
  print("hi, stdout")
  from __future__ import print_function(8): print(i) time.sleep(0.5)
  To better handle large outputs, the output area can be collapsed. Run the following cell and then single- or double- click on the active area to the left of the output:
  for i in range(50): print(i)
  Beyond a certain point, output will scroll automatically:
  for i in range(500): print(2**i - 1)