##// END OF EJS Templates
More docstrings....
More docstrings. Move all ibrowse commands into their own method (named "cmd_foo"). This simplifies command dispatching and makes it possible to add new commands in a subclass. Add three new ibrowse commands: detailattr: This opens a detail view for the attribute under the cursor. prevattr: Move left one column (mapped to "<"). nextattr: Move right one column (mapped to ">").

File last commit:

r0:6f629fcc
r215:819f595a
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