##// END OF EJS Templates
Organizing the docs/examples directory. I moved all the old examples into a core subdir. I then created...
Organizing the docs/examples directory. I moved all the old examples into a core subdir. I then created a new kernel subdir for all the examples that are being moved here from ipython1-dev. The examples in core should probably be organized into more appropriately named subdirs. The core subdir should be reserved for things related to the ipython core (as it develops).

File last commit:

r1248:19e3b286
r1251:99658885
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