jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.52k stars 4.82k forks source link

Show documentation tooltips as in jupyter notebook 6.* #7034

Open BrunoBelucci opened 11 months ago

BrunoBelucci commented 11 months ago

Problem

Jupyter Notebook 7 does not have the feature of expanding/opening the docstring tooltip with 2x shift + tab or 4x shift tab, which I use all the time when working with Jupyter Notebook 6.*. Check https://discourse.jupyter.org/t/show-documentation-tooltips-as-in-jupyter-notebook-6/21268 for further discussion.

Proposed Solution

@krassowski suggested that this "could be implemented by opening contextual help/inspector widget in the sidebar." I am not familiar with the project and the codebase, so I cannot develop it further. I can only speak from the point of view of the user and say that this is one of the features that I most use when working with jupyter, particularly when getting used to new libraries.

Additional context

I will link the same image that I used in the original discussion. image

1: When we press shift + tab in the ‘old’ interface

2: When we press 4x shift + tab in the ‘old’ interface

3: When we press shift + tab in the ‘new’ interface

Note that even the icons (arrow, + and x) are missing.

krassowski commented 11 months ago

Previous issue about this: https://github.com/jupyter/notebook/issues/6692

krassowski commented 3 months ago

Note: in classic Notebook shortcuts compatibility mode this should be mapped to F1

janxkoci commented 3 months ago

@krassowski Actually, in classic notebook the F1 shortcut opens help in a pager in bottom panel. Sorry, if I confused you in the other issue..

krassowski commented 3 months ago

No sorry, that's my mistake - I commented on the wrong issue, I should have added my comment in https://github.com/jupyter/notebook/issues/6692 which does discuss the pager panel on the bottom.

janxkoci commented 3 months ago

I commented there moments ago, so hopefully it's clear now :sweat_smile: