##// END OF EJS Templates
Merged from my trunk-dev:...
Merged from my trunk-dev: Lukasz Pankowski's patches: sh profile prefilter changes (allow ~/bin/foo, /bin/foo in addition to ./foo to be directly executed) allow multiple dashes in demo ---stop--- editor hook does TryNext shadow history docs Allow multiline macros in threaded shells Do not hang with dev version of PyGTK: do set_interactive(False)

File last commit:

r1248:19e3b286
r1783:1b690a90 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