Commit c11a485d authored by Elizaveta Shashkova's avatar Elizaveta Shashkova
Browse files

Fix Debug Console when attaching to IPython process (PY-20531)

parent c0b06a8f
Branches unavailable Tags unavailable
No related merge requests found
Showing with 4 additions and 3 deletions
+4 -3
......@@ -313,16 +313,17 @@ class _PyDevFrontEnd:
version = release.__version__
def __init__(self, show_banner=True):
# Create and initialize our IPython instance.
self.ipython = PyDevTerminalInteractiveShell.instance()
if hasattr(PyDevTerminalInteractiveShell, '_instance') and PyDevTerminalInteractiveShell._instance is not None:
self.ipython = PyDevTerminalInteractiveShell._instance
else:
self.ipython = PyDevTerminalInteractiveShell.instance()
if show_banner:
# Display the IPython banner, this has version info and
# help info
self.ipython.show_banner()
self._curr_exec_line = 0
self._curr_exec_lines = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment