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

Data Viewer option does not exist #15527

Closed
smurpau opened this issue Mar 2, 2021 · 4 comments
Closed

Data Viewer option does not exist #15527

smurpau opened this issue Mar 2, 2021 · 4 comments
Assignees
Labels
area-data science bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@smurpau
Copy link

smurpau commented Mar 2, 2021

Environment data

  • VS Code version: 1.53.2

  • Extension version (available under the Extensions sidebar): 2021.2.582707922

  • OS and version: Windows_NT x64 10.0.17763

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.2

  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Poetry

  • Relevant/affected Python packages and their versions: pandas 1.22

  • Relevant/affected Python-related VS Code extensions and their versions:

  • Jupyter 2021.2.603412351

  • Python Test Explorer for Visual Studio Code: 0.6.6

  • Value of the python.languageServer setting: Jedi

Expected behaviour

As described in the release notes, a "View in Data Viewer" option should appear when right clicking on a pandas dataframe.

Actual behaviour

No option is available:
image

I'm on a February 2021 release, so I'm at a loss as to why this functionality doesn't appear

Steps to reproduce:

Launch Python File debugger on the following example, with a breakpoint on the last line:

import pandas as pd

df = pd.DataFrame(
    {
        "test1": [1, 2, 3],
        "test2": [4, 5, 6],
    }
)

print(df.head())

@smurpau smurpau added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Mar 2, 2021
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Mar 2, 2021
@joyceerhl
Copy link

joyceerhl commented Mar 2, 2021

Hi @smurpau, the data viewer debugger integration is available as an experiment. Are you opted out of all experiments in your settings.json? If so that would explain why you aren't seeing 'View Value in Data Viewer' in the debug context menu.

If you add the following setting to your user settings.json and reload VS Code for the new setting to take effect, does the data viewer option appear?

"python.experiments.optInto": ["debuggerDataViewer"],

@joyceerhl joyceerhl added the info-needed Issue requires more information from poster label Mar 3, 2021
@smurpau
Copy link
Author

smurpau commented Mar 4, 2021

Hi @joyceerhl, yes indeed, I forgot I opted out of all experiments due to a pythonPath/condaPath issue as I recall. The data viewer works great now, thanks.

@smurpau smurpau closed this as completed Mar 4, 2021
@ghost ghost removed the triage label Mar 4, 2021
@woidfeeee
Copy link

I cant see the DataViewer in the context menu on variables containing geodataframes (geopandas). Normal dataframes from pandas are working without problems. Any ideas what could be the reason for this?

VSCode and all the pyhton modules are at the latest version.

@joyceerhl
Copy link

That's because the data viewer doesn't support geodataframes right now. Feel free to file an issue on us at https://github.com/microsoft/vscode-jupyter. Alternatively, if you'd like to send us a PR, this comment describes how you could implement support for geodataframes.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-data science bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants