##// END OF EJS Templates
Merge of the ipython-ipython1a branch into the ipython trunk. This merge represents the first...
Merge of the ipython-ipython1a branch into the ipython trunk. This merge represents the first merging of the things in ipython1-dev into ipython. More specifically, this merge includes the basic ipython1 kernel and a few related subpackages. Most importantly, the setup.py script and friends have been refactored.

File last commit:

r1206:86a76129
r1247:48fb9d90 merge
Show More
nbexample.py
11 lines | 268 B | text/x-python | PythonLexer
from notebook.markup import rest
rest.title('This is a Python Notebook')
rest.heading(1,'A first-level heading')
rest.text("""\
Some plain text, without any special formatting.
Below, we define a simple function to add two numbers.""")
def add(x,y):
return x+y