##// END OF EJS Templates
Fix nbrun in notebooks with non-code cells.
damianavila -
Show More
@@ -2568,7 +2568,8 b' class InteractiveShell(SingletonConfigurable):'
2568 if not nb.worksheets:
2568 if not nb.worksheets:
2569 return
2569 return
2570 for cell in nb.worksheets[0].cells:
2570 for cell in nb.worksheets[0].cells:
2571 yield cell.input
2571 if cell.cell_type == 'code':
2572 yield cell.input
2572 else:
2573 else:
2573 with open(fname) as f:
2574 with open(fname) as f:
2574 yield f.read()
2575 yield f.read()
General Comments 0
You need to be logged in to leave comments. Login now