calysto_hy icon indicating copy to clipboard operation
calysto_hy copied to clipboard

There are no code autocompletion for object attributes/methods?

Open Nanguage opened this issue 7 years ago • 3 comments

When I use this kernel, I found that the object's attributes/methods can't get the completion. like this:

image

but in raw hy-repl, I can get the completion:

image

I should turn on it by some configuration, or this is not supported for now?

Nanguage avatar Oct 23 '18 06:10 Nanguage

Looks like you need the jedhy python package.

dsblank avatar Oct 23 '18 10:10 dsblank

But I have followed your instructions to install jedhy:

pip3 install git+https://github.com/ekaschalk/jedhy.git

Do I need some other operations to turn it on?

Nanguage avatar Oct 24 '18 02:10 Nanguage

Make sure that the pip you are using is associated to the same Python that runs the hy kernel.

One way to do that is, in the Python kernel, run:

Cell 1:

import sys

Cell 2:

! {sys.executable} -m pip install git+https://github.com/ekaschalk/jedhy.git

You might have to adjust this in the Hy kernel. Generally:

  1. find out what the Python executable is
  2. Use that Python to run pip

dsblank avatar Jan 31 '19 15:01 dsblank