##// END OF EJS Templates
make SIGUSR1 and SIGINFO trigger printing of info...
make SIGUSR1 and SIGINFO trigger printing of info Directory and url/port information for the notebook server is now printed when it receives one of these signals. SIGINFO is available only on BSD-based systems, and is triggered via Ctrl-T.

File last commit:

r4406:0251893c
r9913:79023555
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
))