-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
autonotebook: re-enable VSCode #1309
Conversation
@casperdcl this is a trivial fix but would sure be a quality-of-life update for us vscode users ^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gordonwatts @aldanor sorry for the delay
if 'VSCODE_PID' in os.environ: # pragma: no cover | ||
raise ImportError("vscode") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know which vscode version exactly this PR applies to? Is there a safer fix like:
if 'VSCODE_PID' in os.environ: # pragma: no cover | |
raise ImportError("vscode") | |
if os.environ.get('some_vscode_version_variable) <= '1337': # pragma: no cover | |
raise ImportError("vscode") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am afraid I do not know what version it applies to. Nor do I have any experience in knowing how to get the VS code version from the env!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok will include as-is, thanks!
We'll see if anyone complains/suggests a fix later :)
There's no reason to block autonotebook in vscode anymore since vscode-jupyter supports ipywidgets just fine (for almost a year now?).
Closes #1213