-
Notifications
You must be signed in to change notification settings - Fork 294
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
Jupyter: Some lists and pd.DataFrames not opening in Data Viewer #4886
Comments
Thanks for reporting it @maciejkos, and thanks for your detailed repro steps. I can also get it using regular python. |
@joyceerhl , please check to see if this is a regression. |
Not a regression, same behavior exists in the December release. Root cause is |
Thanks for looking into it @joyceerhl, @DavidKutu, and @greazer! @joyceerhl I like how PyCharm is doing it. At the very least, I would like to see a string representation like below, perhaps with a nicer presentation and formatting. What I would really like is the ability to explore the objects in more detail like here. I have a question. I mentioned in my report that I had experienced the same issue a few times with some pd.dataframes. Unfortunately, I don't remember which ones. Would you venture a guess as to what dataframes could be affected? I haven't created any dataframes with pathlib.WindowsPath objects :) |
@greazer Do we still need the "info-needed" label? :) |
Sorry for the delayed response. We've had other reports of dataframes failing to load, e.g. #4367. If you have an example that would really help us. |
I found the same behavior when I tried to view the transposed DataFrame (the regular dataframe has no issues). Version: 1.54.2 (user setup) |
Hope this helps. Version below is perfectly working with variable viewer. So something between 1.53.2 and 1.54.2 has changed which is breaking the Data viewer. Version: 1.53.2 (user setup) |
Hi @mbijjur can you share a code sample and the version of the Jupyter extension that you have? Or is it the same version with either build of VS Code? |
It is the same Jupyter extension version. You can try with any simple pandas df example. |
@mbijjur thank you, this is a regression in the Jupyter extension (nothing to do with VS Code core), I know why this is happening. Will submit a fix. Sorry for the trouble. |
Update: we fixed the problem with transposed DataFrames in the April release. The original problem with objects not being displayed would be resolved by #1138 so closing as a duplicate of that. Please feel free to upvote that issue instead. |
Environment data
Expected behaviour
Opening all lists and pd.DataFrames in Data Viewer should display their contents.
Actual behaviour
Some lists and DataFrames are not displayed in Data Viewer.
Steps to reproduce:
fake_files_list
opens in Data Viewer, butnew_files
doesn't. I have a similar issue with some DataFrames. The size of the Dataframe does not seem to matter.Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)The text was updated successfully, but these errors were encountered: