##// END OF EJS Templates
Allow the %run magic with '-b' to specify a file....
Allow the %run magic with '-b' to specify a file. The syntax would be: %run -d -b file2.py:30 file1.py to break at line 30 of file2.py when running file1.py. The old syntax %run -d -b 20 file1.py still works the way it used to. Suggested by user gozzilli on StackOverflow (http://stackoverflow.com/questions/14305203/ipython-set-a-breakpoint-in-imported-file/).

File last commit:

r7874:4a6836ce
r9052:473fcf09
Show More
test_nbpy.py
17 lines | 319 B | text/x-python | PythonLexer
from unittest import TestCase
from ..nbbase import (
NotebookNode,
new_code_cell, new_text_cell, new_worksheet, new_notebook
)
from ..nbpy import reads, writes
from .nbexamples import nb0, nb0_py
class TestPy(TestCase):
def test_write(self):
s = writes(nb0)
self.assertEqual(s,nb0_py)