##// END OF EJS Templates
Fix doctest support: now running scripts that invoke the various doctest...
Fix doctest support: now running scripts that invoke the various doctest testing methods and functions from within IPython should work.

File last commit:

r0:6f629fcc
r764:f99a2008
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