Ptvs: Lag with Anaconda/IPython interactive

Created on 10 Jul 2018  Â·  9Comments  Â·  Source: microsoft/PTVS

With IPython interactive mode enabled, first initialize the interactive window (with any valid code)

At the beginning of a prompt, type a few non-numeric character and you'll have a 2-5 seconds lag before they appear.

There's no lag if you type a number or #.

Also reported at https://developercommunity.visualstudio.com/content/problem/289052/vs-python-lag-with-anacondaipython-interactive-env.html

Legacy Language Support REPL bug devcomm P1 Performance

Most helpful comment

Has there been any progress on this? I find the interactive mode extremely useful, but the delay makes it nearly unusable to type code into directly. Is there a way I can disable intellisense on the interactive window entirely until this is resolved?

All 9 comments

This is just triggering IntelliSense. Once we switch to a fully async completion API, this should go away.

@zooba "Once we switch to a fully async completion API..."

How about reverting back to the old method, which worked perfectly? Scrape a package, store it locally.

Seems like it's time to find a good VS alternative....

Has there been any progress on this? I find the interactive mode extremely useful, but the delay makes it nearly unusable to type code into directly. Is there a way I can disable intellisense on the interactive window entirely until this is resolved?

@BrianMWest, we're working on integrating the language server client with the language server protocol which should speeds things up.

There is no way to disable intellisense in the interactive window.

Just to weigh in, hoping it might help with prioritization, I'm experiencing this issue as well.

I'd be happy to work with a temporary solution as well, so that I can keep an otherwise very satisfying experience :)

I resisted my urge to report this issue , lest it should create more noise. But, I had to. Quite often I am having to wait for seconds between consecutive key strokes.
I am actively considering abandoning VS.NET and moving to PyCharm.

I have the same issue as well, hopefully it would be repaired soon. The interactive window is very useful otherwise, but its sometimes very frustrating to use due to the lag.

@saarinea I've largely given up and am just using Spyder now. If you want, I have a repo with just the basic library requirements at the following link:

https://github.com/MarkMoretto/spyder-master

If you're using Windows 7/8.1/10:

  • Clone it

  • Create a virtual environment (preferably, named "venv")

  • Install ~\requirements\core.txt file:
    C:\>venv\Scripts\python.exe -m pip install -r requirements\core.txt

  • Run it with the batch script the root folder:
    Spyder-IDE.bat

If you try it and have any issues, let me know!

@MarkMoretto I actually have a Spyder installation going on as well, but thank you anyways!

Was this page helpful?
0 / 5 - 0 ratings