New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipython 7.12.0 tab completion doesn't work with numpy and scipy, but with matplotlib #12121
Comments
Try to upgrade jedi; if jedi crashes you will not get any completions. |
Just upgrades jedi. Completion now seems to be o.k. Thank you. |
I am experiencing the same problem - autocomplete works with pandas and seaborn, but NOT numpy. I'm using latest Jedi version 0.14.1. in fact, I updated all pkgs with conda in late April, 2020, so everything up-to-date: |
My jedi-version is 0.16.0. With conda it is 0.15.1. Maybe your upgrade is not complete. |
Interesting. Thanks, I’ll look into it and see if I can upgrade
…-David
--
David Mandelman
Staff Scientist, R&D
Clinical Next-Generation Sequencing
Life Sciences Solutions
Thermo Fisher Scientific
5781 Van Allen Wy | Carlsbad, CA 92008
Tel: +1 (760) 476-7052
From: Kadelka <notifications@github.com>
Reply-To: ipython/ipython <reply@reply.github.com>
Date: Monday, April 27, 2020 at 7:00 AM
To: ipython/ipython <ipython@noreply.github.com>
Cc: David Mandelman <David.Mandelman@thermofisher.com>, Comment <comment@noreply.github.com>
Subject: Re: [ipython/ipython] ipython 7.12.0 tab completion doesn't work with numpy and scipy, but with matplotlib (#12121)
CAUTION: This email originated from outside of Thermo Fisher Scientific. If you believe it to be suspicious, report using the Report Phish button in Outlook or send to SOC@thermofisher.com.
My jedi-version is 0.16.0. With conda it is 0.15.1. Maybe your upgrade is not complete.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ipython_ipython_issues_12121-23issuecomment-2D620004971&d=DwMCaQ&c=q6k2DsTcEGCcCb_WtVSz6hhIl8hvYssy7sH8ZwfbbKU&r=LDNv1nT8BN7FnnAALjqsR9cqbZiCo_uIDdoV0XOaQgM&m=0kJVUATiDQqeU9cuuQfnwuUs_2OhnyGFnwVvt3wgxUw&s=y8PuLCAV1L9LLNHnqdutJoucj6z7mMKmQNSWdQCJCpE&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOA2C7HIG3APIJ4VVR4TD53ROWFW7ANCNFSM4KTG6NLA&d=DwMCaQ&c=q6k2DsTcEGCcCb_WtVSz6hhIl8hvYssy7sH8ZwfbbKU&r=LDNv1nT8BN7FnnAALjqsR9cqbZiCo_uIDdoV0XOaQgM&m=0kJVUATiDQqeU9cuuQfnwuUs_2OhnyGFnwVvt3wgxUw&s=K0fW2-pz703I0kkFuOvcpbX2mxU6XDB11vEK9dRjGxA&e=>.
|
I'm trying: conda install jedi=0.15.1 |
OK, performed full conda update and now have Jedi 0.15.2, but numpy still NOT autocompleting. Frustrating. Any suggestions? |
I think you sould address @Carreau directly. I'm only a user. |
Latest jedi on conda-forge is 0.17 (https://github.com/conda-forge/jedi-feedstock/pull/30/files) though you have to use Which Python version are you on ? It might be that you are on an older one which does not have newer packages. Avoid old version of Jedi, the latest IPython will not be compatible with them. You can use conda-export and pip-freeze if you want to see version of all your packages. |
Python 3.7.7. So I’m using jedi 0.15.2 and I also installed nbextensions with autocomplete feature. Now Numpy is autocompleting for me. In fact, a context-sensitive menu pops up offering the library methods as they are typed, not bad. Thanks for the help.
I tried updating with : conda update -c conda-forge --update-all , but that offered jedi 0.15.2 which I already have so I figured I’ll stop troubleshooting for now since I have the functionality I was looking for. Thanks for all the help.
…-David
--
David Mandelman
Staff Scientist, R&D
Clinical Next-Generation Sequencing
Life Sciences Solutions
Thermo Fisher Scientific
5781 Van Allen Wy | Carlsbad, CA 92008
Tel: +1 (760) 476-7052
From: Matthias Bussonnier <notifications@github.com>
Reply-To: ipython/ipython <reply@reply.github.com>
Date: Monday, April 27, 2020 at 10:58 AM
To: ipython/ipython <ipython@noreply.github.com>
Cc: David Mandelman <David.Mandelman@thermofisher.com>, Comment <comment@noreply.github.com>
Subject: Re: [ipython/ipython] ipython 7.12.0 tab completion doesn't work with numpy and scipy, but with matplotlib (#12121)
CAUTION: This email originated from outside of Thermo Fisher Scientific. If you believe it to be suspicious, report using the Report Phish button in Outlook or send to SOC@thermofisher.com.
Latest jedi on conda-forge is 0.17 (https://github.com/conda-forge/jedi-feedstock/pull/30/files<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_conda-2Dforge_jedi-2Dfeedstock_pull_30_files&d=DwMCaQ&c=q6k2DsTcEGCcCb_WtVSz6hhIl8hvYssy7sH8ZwfbbKU&r=LDNv1nT8BN7FnnAALjqsR9cqbZiCo_uIDdoV0XOaQgM&m=rlnLZ95R3IqoZJWhBnyT5-Cia95rLVg6n-rL_poK40M&s=CsVTsny2CLKRclTyVQ0kenrBLEWbNvqGmjlmuB_svuM&e=>) though you have to use -c conda-forge when upgrading all.
Which Python version are you on ? It might be that you are on an older one which does not have newer packages.
Avoid old version of Jedi, the latest IPython will not be compatible with them.
You can use conda-export and pip-freeze if you want to see version of all your packages.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ipython_ipython_issues_12121-23issuecomment-2D620140351&d=DwMCaQ&c=q6k2DsTcEGCcCb_WtVSz6hhIl8hvYssy7sH8ZwfbbKU&r=LDNv1nT8BN7FnnAALjqsR9cqbZiCo_uIDdoV0XOaQgM&m=rlnLZ95R3IqoZJWhBnyT5-Cia95rLVg6n-rL_poK40M&s=6hqukv4yXWdMG289dXUQOfPvYfIwUSd-zAWhJE0MzFc&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AOA2C7FGDHIQMWKKZANV4VLROXBVRANCNFSM4KTG6NLA&d=DwMCaQ&c=q6k2DsTcEGCcCb_WtVSz6hhIl8hvYssy7sH8ZwfbbKU&r=LDNv1nT8BN7FnnAALjqsR9cqbZiCo_uIDdoV0XOaQgM&m=rlnLZ95R3IqoZJWhBnyT5-Cia95rLVg6n-rL_poK40M&s=OfzlAkiHNO6hIvjx0EEIiOALymOFLkeRo_j2cf17RPk&e=>.
|
Hi @Carreau . I am also facing a similar issue on 7.16.0. To reproduce the issue, I created a minimal conda environment with only # Name Version Build Channel _libgcc_mutex 0.1 main backcall 0.2.0 py_0 blas 1.0 mkl ca-certificates 2020.6.24 0 certifi 2020.6.20 py38_0 decorator 4.4.2 py_0 intel-openmp 2020.1 217 ipython 7.16.1 py38h5ca1d4c_0 ipython_genutils 0.2.0 py38_0 jedi 0.17.0 py38_0 ld_impl_linux-64 2.33.1 h53a641e_7 libedit 3.1.20191231 h14c3975_1 libffi 3.3 he6710b0_2 libgcc-ng 9.1.0 hdf63c60_0 libstdcxx-ng 9.1.0 hdf63c60_0 mkl 2020.1 217 mkl-service 2.3.0 py38he904b0f_0 mkl_fft 1.1.0 py38h23d657b_0 mkl_random 1.1.1 py38h0573a6f_0 ncurses 6.2 he6710b0_1 numpy 1.19.1 py38hbc911f0_0 numpy-base 1.19.1 py38hfa32c7d_0 openssl 1.1.1g h7b6447c_0 parso 0.8.0 py_0 pexpect 4.8.0 py38_0 pickleshare 0.7.5 py38_1000 pip 20.2.2 py38_0 prompt-toolkit 3.0.5 py_0 ptyprocess 0.6.0 py38_0 pygments 2.6.1 py_0 python 3.8.5 hcff3b4d_0 readline 8.0 h7b6447c_0 setuptools 49.2.0 py38_0 six 1.15.0 py_0 sqlite 3.32.3 h62c20be_0 tk 8.6.10 hbc83047_0 traitlets 4.3.3 py38_0 wcwidth 0.2.5 py_0 wheel 0.34.2 py38_0 xz 5.2.5 h7b6447c_0 zlib 1.2.11 h7b6447c_3 I am running Python 3.8.5 with conda 4.8.2 on Ubuntu 20.04 LTS. Also, I tried checking the results fro the
Also, let me know if you want me to open a new issue for the same. Thanks for the help. @david-mandelman Are you using specific nbextension for the autocomplete? I tried doing the same and did not get the autocomplete suggestions. I turned on hinterland, and it still can not perform the auto-completions. Any help from the community will be much appreciated. Thanks |
Hi, I am experiencing the same issue on "stock" ipython/python/numpy in Manjaro and archlinux. Thanks ! |
Same behavior with macports-installed python, ipython, numpy, etc., on Mac:
|
run with (they will appear as fake tab completion items saying jedi has crashed). Try jedi 0.17.2, Python 3.6 is not supported anymore, so you likely want to be on at least 3.7. |
With which command should this be run?
Sorry, still transitioning to python-3.8 (slow utilization by some science libs). I tested with:
and same behavior. |
@Carreau : I tested with jedi git v0.17.2 r141.216f976f and completion works again with numpy. T. |
I don't know, I just know that when david wake patch releases it's often for critical bugs. I also know that 0.17.0 had bugs as many software (spyder for example) explicitly exclude it. |
I figured out how to run ipython with
Not a lot of information. FWIW, you can disable use of jedi with the option |
I had accidentally installed parso 0.8.0, which jedi 0.17.2 didn't like. I reinstalled jedi, which downgraded parso to 0.7.1, and now it works again! |
Using ipython 7.19.0 with Python 3.8.5 on ubuntu 20.04. Tab completion causes crash with module subprocess. The parso verison is 0.8.1 (makes no difference if downgraded to 0.7.1, same crash). The jedi verison ist 0.18.0. Using Using `ipython --IPComplete.debug Traceback (most recent call last): |
#12793 fixes it. |
The ipython-shell:
Python 3.8.1 (default, Jan 9 2020, 22:55:38)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.12.0 -- An enhanced Interactive Python. Type '?' for help.
import readline
readline.parse_and_bind('tab: complete')
import numpy
numpy.__v tab completes to numpy.version
similar for numpy._anything, but
numpy.lin tab should complete to numpy.linspace(, but doesn't
ipython works fine with eg. matplotlib and other modules.
The text was updated successfully, but these errors were encountered: