Skip to content

Conversation

@arjxn-py
Copy link

This PR wraps the contents of pythonrc.py inside a setup() function to avoid polluting the variables panel of jupyterlab debugger when launched from VS Code and this extension is installed.

Context

Image

When JupyterLab is launched from VS Code, the debugger’s Globals panel becomes cluttered with variables injected from the VS Code Python extension’s pythonrc.py. Examples include original_ps1, is_wsl, result, and other internal helper variables. These show up as top-level globals in Jupyter kernels, making the debugger view noisy.

This change potentially reduces unwanted side effects for external tools (e.g., JupyterLab) while keeping functionality intact.

@arjxn-py
Copy link
Author

@microsoft-github-policy-service agree company="QuantStack"

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