| 362 | self.ipython.show_banner() |
| 363 | |
| 364 | def update(self, globals, locals): |
| 365 | ns = self.ipython.user_ns |
| 366 | |
| 367 | for key, value in list(ns.items()): |
| 368 | if key not in locals: |
| 369 | locals[key] = value |
| 370 | |
| 371 | self.ipython.user_global_ns.clear() |
| 372 | self.ipython.user_global_ns.update(globals) |
| 373 | self.ipython.user_ns = locals |
| 374 | |
| 375 | if hasattr(self.ipython, "history_manager") and hasattr(self.ipython.history_manager, "save_thread"): |
| 376 | self.ipython.history_manager.save_thread.pydev_do_not_trace = True # don't trace ipython history saving thread |
| 377 | |
| 378 | def complete(self, string): |
| 379 | try: |