-
Notifications
You must be signed in to change notification settings - Fork 295
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
Dataviewer fails when builtins are overridden with user variables #10941
Comments
Thanks for the issue. We might be able to detect this and put up a warning. I think this would more an error for a linter to detect though. |
No problem! I'm migrating from Matlab to Python, so it's a struggle to get all of these pieces (linter, formatting, github repo, visual code studio, anaconda, python interpreter in vs code) all working, let alone understand them fully. I just saw the error code appear and thought I should mention the headache I went through. I'm using Pylint (because that's most popular I guess), so should I post this issue there? |
Yeah that would probably be a better place to capture this. This would mess up other things too (not just dataframe viewing) that would be more generic to all python code. |
I think we should use the builtin alias |
Ok, I'll post it there. I was surprised to find there was no warning for overriding standard classes! Anyway, I'll post on Pylint. I'm impressed with the fast responses! |
Applies To
What happened?
Pre-amble:
Data viewer fails if you ever re-assign a default class as a variable. There is no warning to avoid doing so, either in "Black", "Pylint", or in the jupyter extension failure error.
This only happens when vs code is launched via github desktop by right clicking the repo name --> "open in VS Code".
The data viewer simply becomes empty if you do the following but open VS Code via anaconda navigator.
Any of these lines placed anywhere in a jupyter .ipynb file cause the data viewer creation error.
Expected Result:
I expected to have a new "Data Viewer - var_name" appear as a new window.
Result:
I received the error pop-up, ""Failed to create the Data Viewer. Check the Jupyter tab of the Output window for more info.".
The entire output log of jupyter is pasted below when opening VS Code via github desktop and running on a script within that repo.
Minimally-Reproducible Example:
6a) If VS Code was opened via github desktop:
6b) If VS Code was opened via anaconda navigator:
VS Code Version
Version: 1.69.2 (user setup) Commit: 3b889b090b5ad5793f524b5d1d39fda662b96a2a Date: 2022-07-18T16:12:52.460Z Electron: 18.3.5 Chromium: 100.0.4896.160 Node.js: 16.13.2 V8: 10.0.139.17-electron.0 OS: Windows_NT x64 10.0.19043
Jupyter Extension Version
v2022.6.1201981810
Jupyter logs
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
v2022.10.1
Anaconda Version (if applicable)
2.2.0
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: