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

Add files to __init__ for autocomplete in VS Code #3135

Closed
hoxbro opened this issue Jan 23, 2022 · 1 comment · Fixed by #3157
Closed

Add files to __init__ for autocomplete in VS Code #3135

hoxbro opened this issue Jan 23, 2022 · 1 comment · Fixed by #3157
Labels
TRIAGE Default label for untriaged issues

Comments

@hoxbro
Copy link
Member

hoxbro commented Jan 23, 2022

When writing in vs code the autocomplete only works for modules imported in an __init__.py file, e.g. pn.widgets.IntSlider work but pn.viewable.Viewer does not. See here:

example.1.mp4

The solution is pretty easy as .viewable only needs to be added to the __init__.

example.2.mp4

I don't know if #3132 will fix this. When you have time @MarcSkovMadsen can you check this?

@hoxbro hoxbro added the TRIAGE Default label for untriaged issues label Jan 23, 2022
@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Jan 23, 2022

I don't expect #3132 to fix it.

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

Successfully merging a pull request may close this issue.

2 participants