Closed wookayin closed 1 month ago
Hi,
Apologies, this is not intentional. Euporie registers a custom pygments
, which gets loaded by pygments
when pyipython
is run. This causes euporie.core
to be imported, which triggers the patching of prompty_toolkit
.
I've published a new release with a fix for this (v2.8.2
), where prompt_toolkit
is patched when a euporie app is lanuched rather than at import.
I hope that fixes the problem for you!
Thanks for the prompt fix! I can confirm that euporie>=2.8.2
works well with ptpython.
Ref: https://github.com/joouha/euporie/commit/78d09b152ae510dee57b7f5ed649abf6910238a4
Problem: When running ptpython, an AssertionError is thrown from the euporie side (which patches some part of ipython or prompt_toolkit), making ptpython completely unusable.
Error:
Detailed Stacktrace:
``` --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) FilePackage installed in my env:
Peeking at the source code, it seems a problem of euporie rather than prompt_toolkit or ptpython.