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

#3400 Fix VS Code/ Pylance not working #3403

Closed
wants to merge 1 commit into from

Conversation

MarcSkovMadsen
Copy link
Collaborator

@MarcSkovMadsen MarcSkovMadsen commented Apr 16, 2022

Addresses #3400

It removes the from . import param in the panel __init__.py root file.

I've tried to search the Panel code including example notebooks and tests. I cannot see any reason to import it.

I don't know why this solves the issues. But the panel.param.py file imports a lot of other modules and also the param package. So a lot of things could potentially be confusing Pylance and causing it.

@MarcSkovMadsen
Copy link
Collaborator Author

Hmmm. I tried to pip install -e <path/to/panel this change. It did not seem to help VS Code and Pylance ???

@philippjfr
Copy link
Member

Appreciate all your investigation of this issue, I'll dig into this as well. I don't think not exposing certain modules because pylance doesn't like them isn't the solution however. Let's find the actual issue in the .param module.

@MarcSkovMadsen
Copy link
Collaborator Author

I close this one as its been replaced with #3411

@MarcSkovMadsen MarcSkovMadsen deleted the fix-vscode-pylance-issue branch April 18, 2022 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants