aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-09-30 10:27:28 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-09-30 10:47:10 +0300
commit5a6373c9d09bbfb7094f9992a4531477bb97829e (patch)
treeebea8fd55fee858876743312cdf789a1f01487b5 /contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
parent15f3c7493474de25a6b23296878bb8f49470d2e6 (diff)
downloadydb-5a6373c9d09bbfb7094f9992a4531477bb97829e.tar.gz
Update contrib/python/ipython/py3 to 8.15.0
Diffstat (limited to 'contrib/python/ipython/py3/IPython/terminal/interactiveshell.py')
-rw-r--r--contrib/python/ipython/py3/IPython/terminal/interactiveshell.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py b/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
index 75cf25ea66..37e0b86981 100644
--- a/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
+++ b/contrib/python/ipython/py3/IPython/terminal/interactiveshell.py
@@ -914,6 +914,15 @@ class TerminalInteractiveShell(InteractiveShell):
active_eventloop = None
def enable_gui(self, gui=None):
+ if self.simple_prompt is True and gui is not None:
+ print(
+ f'Cannot install event loop hook for "{gui}" when running with `--simple-prompt`.'
+ )
+ print(
+ "NOTE: Tk is supported natively; use Tk apps and Tk backends with `--simple-prompt`."
+ )
+ return
+
if self._inputhook is None and gui is None:
print("No event loop hook running.")
return