##// END OF EJS Templates
- fix missing __file__ for scripts run via %run....
- fix missing __file__ for scripts run via %run. - fix bug with '%run -d' under python 2.4

File last commit:

r0:6f629fcc
r122:0c35e2ff
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