question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

numpy, scipy, pandas all very slow (no python-mode here and seemingly no caching)

See original GitHub issue

After doing import numpy or import pandas or import scipy package level completion numpy., pandas., scipy. takes several seconds (up to more than 20 seconds for pandas). Successive completions take the same time, so maybe the cache is not working. I’m not using python-mode, my bundles are:

base16-vim  tabular         vim-markdown  vim-python-pep8-indent
jedi-vim    vim-commentary  vim-pathogen  vim-shebang

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
Rmanocommented, Jul 26, 2017

@blueyed — I just wanted to add that I see the problem too. No, I am not a Python nor a Vim developer, unfortunately (I’d like). I use Python with numpy, scipy, and pandas to do my job of data analysis and processing (it’s my “free matlab” option — I am an electronic, analog-hardware, engineer), but I am not skilled enough to go deep inside — the linked issue, davidhalter/jedi#915, it’s way above my developer (meager) abilities. But if given detailed instruction I will try to help (test, etc.) in the measure I can; so yes, instead of +1, I should have written this message. Thanks for helping in better communication.

3reactions
blueyedcommented, Jul 25, 2017

@Rmano Instead of +1 you might want to help out in a more productive way, e.g. by looking into why it is so slow…! After all (all of you) should be Python developers, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slow numpy and pandas imports on Google Cloud Run
This is a known issue in the Python ecosystem. all modules are imported at runtime, and some modules are 300-500MB large in size....
Read more >
5 minute guide to Numba
A ~5 minute guide to Numba . Numba is a just-in-time compiler for Python that works best on code that uses NumPy...
Read more >
Installation — pandas 1.5.2 documentation
Installing pandas and the rest of the NumPy and SciPy stack can be a little difficult for inexperienced users. The simplest way to...
Read more >
High Performance Python
the following line is not valid Python code result = (number / numbers[i:(i + 5)]).is_integer() if any(result): return False return True. Here, we...
Read more >
Frequently Asked Questions — scikit-learn 1.2.0 documentation
Why does Scikit-learn not directly work with, for example, pandas.DataFrame?¶. The homogeneous NumPy and SciPy data objects currently expected are most ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found