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