The Wayback Machine - https://web.archive.org/web/20200705002907/https://github.com/gopherdata/gophernotes/issues/173
Skip to content
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

Shift + Tab signature hinting? #173

Open
ptiger10 opened this issue Jun 3, 2019 · 2 comments
Open

Shift + Tab signature hinting? #173

ptiger10 opened this issue Jun 3, 2019 · 2 comments
Labels

Comments

@ptiger10
Copy link

@ptiger10 ptiger10 commented Jun 3, 2019

Coming from a Python-in-Jupyter background, I notice that Tab works as you would expect (reveals all available methods/attributes), but Shift+Tab (signature hinting) does not. I could not find documentation on this. Is Shift+Tab not supported, or is my setup is incorrect?

Example:

type Foo struct {
    name string
    description string
}
func (f Foo) Qux(s string) string {
    return s
}
n := Foo{"bar", "baz"}
  • n. + Tab Works as expected -> shows dropdown list: name, description
  • n.Qux( + Tab Does not work as expected -> does not show anything and logs in Terminal: Unhandled shell message: inspect_request

My setup:

$ jupyter --version
4.4.0

$ uname -v
Darwin Kernel Version 17.7.0: Wed Apr 24 21:17:24 PDT 2019; root:xnu-4570.71.45~1/RELEASE_X86_64

$ brew list --versions zeromq
zeromq 4.3.1_1
@cosmos72 cosmos72 added the enhancement label Jun 3, 2019
@cosmos72
Copy link
Member

@cosmos72 cosmos72 commented Jun 3, 2019

Only Tab is currently implemented.
What should be displayed by Shift + Tab ?

@ptiger10
Copy link
Author

@ptiger10 ptiger10 commented Jun 3, 2019

Ideally, the behavior would be the same as in Python, which is to create a hover element with the function signature and docstring. If you press Tab a second time (while still holding Shift), the hover element expands, and you can scroll within it. It makes a huge difference for API discoverability when using an analytics library.

Python
Python

This is how Shift+Tab is currently rendered in the lgo notebook kernel.
Go
Go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.