Show More
@@ -159,8 +159,10 b' class TerminalMagics(Magics):' | |||||
159 | else: |
|
159 | else: | |
160 | self.shell.user_ns['pasted_block'] = b |
|
160 | self.shell.user_ns['pasted_block'] = b | |
161 | self.shell.using_paste_magics = True |
|
161 | self.shell.using_paste_magics = True | |
162 | self.shell.run_cell(b) |
|
162 | try: | |
163 |
self.shell.u |
|
163 | self.shell.run_cell(b) | |
|
164 | finally: | |||
|
165 | self.shell.using_paste_magics = False | |||
164 |
|
166 | |||
165 | def rerun_pasted(self, name='pasted_block'): |
|
167 | def rerun_pasted(self, name='pasted_block'): | |
166 | """ Rerun a previously pasted command. |
|
168 | """ Rerun a previously pasted command. |
General Comments 0
You need to be logged in to leave comments.
Login now