-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Suggest Jupyter extension installation when debugging dataframe objects #25341
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: luabud <45497113+luabud@users.noreply.github.com>
Co-authored-by: luabud <45497113+luabud@users.noreply.github.com>
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.
@copilot remove the README. Add more comments if needed through the files you add instead.
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.
@copilot remove the README. Add more comments if needed through the files you add instead.
Co-authored-by: luabud <45497113+luabud@users.noreply.github.com>
I've removed the README file and added comprehensive inline documentation to the code files instead. The detailed comments now explain the purpose, functionality, and implementation details directly in the relevant source files. See commit 77d0898. |
Implements a debug adapter tracker that detects dataframe-like objects during debugging sessions and suggests installing the Jupyter extension when it's not already installed.
Background
Once the Jupyter extension is no longer installed by default, users may not be aware of the data viewer functionality when debugging dataframe objects. This change improves discoverability by showing a helpful notification when dataframes are detected in debug variables.
Implementation
The solution adds a
DataFrameVariableTracker
that:variables
responses during debugging sessionspandas.core.frame.DataFrame
,pandas.DataFrame
polars.DataFrame
,cudf.DataFrame
dask.dataframe.core.DataFrame
,modin.pandas.DataFrame
vaex.dataframe.DataFrame
,geopandas.geodataframe.GeoDataFrame
ms-toolsai.jupyter
) is installedExample Usage
When debugging code like this without the Jupyter extension installed:
Users will see: "Install Jupyter extension to inspect dataframe objects in the data viewer." with an "Install Jupyter Extension" button that opens the extension marketplace.
Testing
Fixes #20020.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.