##// END OF EJS Templates
Fixed Python 2.6 warning with traitlets object.__new__....
Fixed Python 2.6 warning with traitlets object.__new__. In Python 2.6 a warning is given if object.__new__ is called with anything more than first cls argument. We are using super so we needed a way to see of the __new__ method about to be called is object.__new__.

File last commit:

r1248:19e3b286
r2255:c296652f
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