Get a function definition/implementation hint similar to the one shown in pycharm.

I've written the following python code snippet in pycharm: ```python import numpy as np from numpy import pi, sin a = np.array([1], dtype=bool) if np.in|vert(a) == ~a: print('ok') ``` When putting the point/cursor in the above code snippet at the position denoted by `|`, I would like to see information similar to that provided by `pycharm`, as shown in the following screenshots: https://user-images.githubusercontent.com/11155854/137619512-674e0eda-7564-4... https://user-images.githubusercontent.com/11155854/137619524-a0b584a3-1627-4... But I wonder if there are any other python packages/tools that can help me achieve this goal? Regards, HZ

On Tue, Oct 19, 2021 at 7:26 AM <hongyi.zhao@gmail.com> wrote:
Hi, Could you explain exactly what you're asking about? Are you using pycharm, but want to see similar tooltips with your custom (non-numpy-library) code? Or do you want to see these numpy hints outside pycharm? If the latter, what kind of IDE do you mean? András

On Tue, Oct 19, 2021 at 5:13 PM Andras Deak <deak.andris@gmail.com> wrote:
Yes, this is just what I want to have.
If the latter, what kind of IDE do you mean?
Self compiled Emacs git master version on Linux, say, Ubuntu. In detail, I use the following code snippet in Emacs to do the testing: ```python import numpy as np a = np.array([1], dtype=bool) if np.invert(a) == ~a: print('ok') ``` When I hover over the mouse on `invert' and `~', respectively, I only can see the hints shown in the attachments. HZ

On Tue, Oct 19, 2021 at 7:26 AM <hongyi.zhao@gmail.com> wrote:
Hi, Could you explain exactly what you're asking about? Are you using pycharm, but want to see similar tooltips with your custom (non-numpy-library) code? Or do you want to see these numpy hints outside pycharm? If the latter, what kind of IDE do you mean? András

On Tue, Oct 19, 2021 at 5:13 PM Andras Deak <deak.andris@gmail.com> wrote:
Yes, this is just what I want to have.
If the latter, what kind of IDE do you mean?
Self compiled Emacs git master version on Linux, say, Ubuntu. In detail, I use the following code snippet in Emacs to do the testing: ```python import numpy as np a = np.array([1], dtype=bool) if np.invert(a) == ~a: print('ok') ``` When I hover over the mouse on `invert' and `~', respectively, I only can see the hints shown in the attachments. HZ
participants (3)
-
Andras Deak
-
Hongyi Zhao
-
hongyi.zhao@gmail.com