Repository navigation
Upgrade to prompt_toolkit 2.0 - #11177
Conversation
|
The remaining failure is in generating the shortcuts list for the docs, if anyone wants to update that script: |
|
Hi, here's a custom fix that works (this patch was generated using git diff). It would be really great to have a minor IPython release supporting Thanks ! |
|
Thanks, I applied that patch. |
|
@takluyver Also,
Are you still willing to backport this ? I see it was only added to 7.0 |
|
I'm not sure 😕 . It's ended up being a fairly big change, which probably won't backport cleanly, and may cause other problems. There's a larger shift in the Python world towards each application having its own dependencies installed in a separate environment. IPython doesn't entirely fit with that, because it's not just any application - you want it installed in the same environment as the modules you're working with. But then prompt_toolkit is a module that's largely useful only for applications. So for now, I think I'm inclined to push forwards towards 7.0, and see how things go. IPython 5.7 correctly specifies the versions of prompt_toolkit it works with, so it's not a bug that it's incompatible with newer versions. |
|
Ok, this will be an additional point to make people switch to Python 3. Also it won’t break any app using both IPython and prompt_toolkit 1.0 Only problem we had with python 2.7 is that when we wanted to add prompt_toolkit 2.0 features to scapy, we were blocked by IPython. |
|
when will we have a chance to have an official Ipython compatible version ? Ipython-7.0 seems months away |
|
any hope for today ? |
|
yes, it would be great to have IPython work with current versions of modules. As you note, prompt-tooolkit 2.x is incompatible with version 1,0.x, so if you have other applications that have been updated, you have to pick which module you prefer or need - IPython or the other ... ! Maybe you need a branch using the new version; users who need the old prompt-toolkit for other apps - and there may be some, can continue use the 6.x series of IPython ... |
|
For anyone needing a temporary workaround, I can confirm that reverting to prompt-toolkit v.1.x mostly resolves the errors that prevent ipython, ptpython, etc. from initializing: |
Continuation of #10964