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

DISCUSSION: How to display docstrings? #873

Open
lgeiger opened this issue Jun 14, 2017 · 6 comments
Open

DISCUSSION: How to display docstrings? #873

lgeiger opened this issue Jun 14, 2017 · 6 comments
Labels
discussion 💬 Discussion is wanted

Comments

@lgeiger
Copy link
Member

lgeiger commented Jun 14, 2017

Future versions of ipykernel will support additional docstrings. See ipython/ipykernel#249

I played a bit around with different ways of displaying them, let me know what you think:

Option 1: Description and function signature

Option 2: Only description

Option 3: Description and function signature as a snippet


This will complete the whole shown string:

Option 4: Description and function signature as right label

@lgeiger lgeiger added the discussion 💬 Discussion is wanted label Jun 14, 2017
@rgbkrk
Copy link
Member

rgbkrk commented Jun 15, 2017

/cc @Carreau

@rgbkrk
Copy link
Member

rgbkrk commented Jun 15, 2017

I like (3) best.

@BenRussert
Copy link
Member

I like (3), but don't know if i'd always want the whole signature completed. Might change my mind if I try it live.

(1) looks great too.

@t9md
Copy link
Contributor

t9md commented Jun 16, 2017

I like "Option 2: Only description".
Because when I use autocomplete I normal use it for just complete the word I already know of.

So at least for me, extra information is bit noisy( I explicit refer document or src code if I want those info).

[idea] use these signature info as dynamic snippet? dynamically create snippet, and tab can expand these snippet.

@Carreau
Copy link
Member

Carreau commented Jun 16, 2017

One other possibility is to have the signature be "display:none" except when selected by the cursor.

  • 1: 😐
  • 2: 😐
  • 3: 👍
  • 4: 👎

@dnowacki-usgs
Copy link

dnowacki-usgs commented Jul 25, 2017

I like (1) best, then (2).

I do not like (3); completing the whole snippet seems overkill... but maybe I'm missing the point.

(4) is ok but I don't see much improvement (or difference) compared to (1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion 💬 Discussion is wanted
Projects
None yet
Development

No branches or pull requests

6 participants