##// END OF EJS Templates
don't allow unicode errors in refill_readline_hist...
don't allow unicode errors in refill_readline_hist If a recent session had unicode input, and the current session has a different encoding, refill_readline_hist could raise a UnicodeEncodeError exception, preventing IPython from starting. 'replace' is now used when encoding the history, so this error is no longer possible.

File last commit:

r1248:19e3b286
r3803:f97c65a0
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