ipython / ipython/ipython

Cannot install event loop hook for "qt6" when running with `--simple-prompt` (ipython-8.20.0) but ipython-8.14.0 OK

Open
#14,298 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16.8k
Forks
4.5k
Avg merge
1d 2h
Merged PRs (30d)
6

Description

With ipython-8.20.0 I get:
```
ipython3.12 --simple-prompt
Python 3.12.1 (main, Dec 18 2023, 00:00:00) [GCC 13.2.1 20231011 (Red Hat 13.2.1-4)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.20.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: %gui qt6
Cannot install event loop hook for "qt6" when running with `--simple-prompt`.
NOTE: Tk is supported natively; use Tk apps and Tk backends with `--simple-prompt`.
```

But if Ipython-8.14.0 this works
```
ipython --simple-prompt
Python 3.12.1 (main, Dec 18 2023, 00:00:00) [GCC 13.2.1 20231205 (Red Hat 13.2.1-6)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.14.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: %gui qt6
Installed qt6 event loop hook.
```

Since running ipython as subprocess under emacs require --simple-prompt, this is a problem for that environment.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.