##// END OF EJS Templates
fix magics history in two-process ipython console...
fix magics history in two-process ipython console Before this commit: In [1]: %hist get_ipython().magic(u'hist') In [2]: a? Object `a` not found. In [3]: hist get_ipython().magic(u'hist') get_ipython().magic(u'pinfo a') hist After this commit: In [1]: %hist %hist In [2]: a? Object `a` not found. In [3]: hist %hist a? hist closes #1114

File last commit:

r4406:0251893c
r5646:bfdb4a10
Show More
nbexamples.py
29 lines | 435 B | text/x-python | PythonLexer
from ..nbbase import (
NotebookNode,
new_code_cell, new_text_cell, new_notebook
)
nb0 = new_notebook()
nb0.cells.append(new_text_cell(
text='Some NumPy Examples'
))
nb0.cells.append(new_code_cell(
code='import numpy',
prompt_number=1
))
nb0.cells.append(new_code_cell(
code='a = numpy.random.rand(100)',
prompt_number=2
))
nb0.cells.append(new_code_cell(
code='print a',
prompt_number=3
))