~ipython-contrib/+junk/ipython-zmq

« back to all changes in this revision

Viewing changes to doc/nbexample.py

  • Committer: ville
  • Date: 2008-02-16 09:50:47 UTC
  • mto: (0.12.1 ipython_main)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: ville@ville-pc-20080216095047-500x6dluki1iz40o
initialization (no svn history)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from notebook.markup import rest
 
2
 
 
3
rest.title('This is a Python Notebook')
 
4
rest.heading(1,'A first-level heading')
 
5
rest.text("""\
 
6
Some plain text, without any special formatting.
 
7
 
 
8
Below, we define a simple function to add two numbers.""")
 
9
 
 
10
def add(x,y):
 
11
    return x+y