##// END OF EJS Templates
Merge pull request #4634 from damianavila/fix_nbrun...
Min RK -
r13749:8426c9db merge
parent child Browse files
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()
@@ -377,6 +377,7 b' tclass.py: deleting object: C-third'
377 nb = current.new_notebook(
377 nb = current.new_notebook(
378 worksheets=[
378 worksheets=[
379 current.new_worksheet(cells=[
379 current.new_worksheet(cells=[
380 current.new_text_cell("The Ultimate Question of Everything"),
380 current.new_code_cell("answer=42")
381 current.new_code_cell("answer=42")
381 ])
382 ])
382 ]
383 ]
General Comments 0
You need to be logged in to leave comments. Login now