##// END OF EJS Templates
Replace cell with %load magic instead of adding cell
Thomas Kluyver -
Show More
@@ -353,7 +353,9 b' class CodeMagics(Magics):'
353 print('Operation cancelled.')
353 print('Operation cancelled.')
354 return
354 return
355
355
356 self.shell.set_next_input(contents)
356 contents = "# %load {}\n".format(arg_s) + contents
357
358 self.shell.set_next_input(contents, replace=True)
357
359
358 @staticmethod
360 @staticmethod
359 def _find_edit_target(shell, args, opts, last_call):
361 def _find_edit_target(shell, args, opts, last_call):
General Comments 0
You need to be logged in to leave comments. Login now