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

Autocomplete for functions does not show parameters first #400

Open
cmelchior opened this issue Mar 7, 2023 · 1 comment
Open

Autocomplete for functions does not show parameters first #400

cmelchior opened this issue Mar 7, 2023 · 1 comment
Labels

Comments

@cmelchior
Copy link
Contributor

One of the strengths of Kotlin as a typed language is the discoverability of the API shape, which is more accessible than for dynamic languages.

However, that seems a bit broken in Jupyter where you don't get any help for parameters, but have to discover them yourself through documentation or samples.

Example with Dataframes:

image

The first argument to DataFrame.readCSV( is required and is one of 4 options. However, that is impossible to tell from the huge list of autocomplete options and you can only discover this through documentation.

If you do know the name of the parameter, you can get it to show up, e.g like this:

image

But that is hardly ideal.

Compare this to IntelliJ which shows it like this:

image

Which is much easier to digest and act upon.

This issue #17 does mention that the current autocomplete is a bit dumb, but it was also closed. So I thought I would open this issue to track improving the autocomplete.

@ileasile
Copy link
Collaborator

ileasile commented Mar 8, 2023

You can try to use Kotlin Notebook plugin. Essentially it's the same kernel, but inside IDE.
https://plugins.jetbrains.com/plugin/16340-kotlin-notebook
Now it's actively developed, so EAP version may be a bit outdated, but still

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

No branches or pull requests

2 participants