We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf2baf commit f4912fbCopy full SHA for f4912fb
test_notebooks.py
@@ -52,11 +52,17 @@ def test_notebook(self):
52
# parse the string with nbformat.reads
53
cells = nbformat.reads(content, 4)['cells']
54
55
+ # create namespace with IPython standards
56
namespace = dict()
- for i, c in enumerate(cells):
57
+ exec('from IPython import display', namespace)
58
+
59
+ # run all cells
60
+ i = 0
61
+ for c in cells:
62
63
# skip markdown cells
64
if c['cell_type'] != 'code': continue
65
+ i += 1
66
67
# skip deliberately failing cells
68
if BOUND_TO_FAIL in c['source']: continue
0 commit comments