##// END OF EJS Templates
Fix call to set_next_input to happen on shell object
Fernando Perez -
Show More
@@ -664,7 +664,7 b' class CodeMagics(Magics):'
664 else:
664 else:
665 contents = openpy.read_py_file(arg_s, skip_encoding_cookie=True)
665 contents = openpy.read_py_file(arg_s, skip_encoding_cookie=True)
666
666
667 self.set_next_input(contents)
667 self.shell.set_next_input(contents)
668
668
669 def _find_edit_target(self, args, opts, last_call):
669 def _find_edit_target(self, args, opts, last_call):
670 """Utility method used by magic_edit to find what to edit."""
670 """Utility method used by magic_edit to find what to edit."""
@@ -2517,11 +2517,6 b' python-profiler package from non-free.""")'
2517 if tc > tc_min:
2517 if tc > tc_min:
2518 print "Compiler time: %.2f s" % tc
2518 print "Compiler time: %.2f s" % tc
2519
2519
2520 @cell_magic('timeit')
2521 def cell_timeit(self, line, cell):
2522 """Time execution of a Python cell."""
2523 raise NotImplementedError
2524
2525 @skip_doctest
2520 @skip_doctest
2526 @needs_local_scope
2521 @needs_local_scope
2527 @line_magic
2522 @line_magic
General Comments 0
You need to be logged in to leave comments. Login now