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

Failed to load kernel extension "DataFrameKernelExtension" from assembly ..\\.nuget\packages\microsoft.data.analysis\0.20.1\interactive-extensions\dotnet\Microsoft.Data.Analysis.Interactive.dll #3256

Open
3 of 13 tasks
R0315 opened this issue Oct 12, 2023 · 12 comments
Labels
bug Something isn't working External

Comments

@R0315
Copy link

R0315 commented Oct 12, 2023

Describe the bug

The line "#r "nuget: Microsoft.Data.Analysis" causes error that DataFrameKernelExtension failed to load, saying that the method "Void Microsoft.DotNet.Interactive.Commands.SubmitCode..ctor" was not found.

This error will happen every time I initially run the cell, but then a second run of the cell seems to work just fine.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
1.0.451105+4f6017e3674e56fe8b5786ce5b0b846d63d9d2f6

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)
@jonsequitur jonsequitur added bug Something isn't working External labels Oct 13, 2023
@IntegerMan
Copy link
Contributor

IntegerMan commented Oct 25, 2023

I can replicate this. I'm not sure when the issue started. The DataFrame's visualizer does work in the subsequent cells, so it appears to not be a catastrophic failure, but it's not going to be a good experience for most users.
image

@shyamnamboodiripad
Copy link
Contributor

Looks like there is a newer (albeit preview) version of the Microsoft.Data.Analysis package where this should be fixed - 0.21.0-preview.23511.1

Could you try if referencing this version explicitly fixes the issue?

@IntegerMan
Copy link
Contributor

@shyamnamboodiripad I can confirm that this does run without error after restarting the kernel and using #r "nuget:Microsoft.Data.Analysis,0.21.0-preview.23511.1"
image

@IntegerMan
Copy link
Contributor

Though interestingly, I do later get a confusing error trying to save the DataFrame to a CSV, which may be due to preview packages; I'm not sure.
image

@IntegerMan
Copy link
Contributor

@shyamnamboodiripad do you or anyone else on the team have any updates on this? The compatibility issue mentioned above is still a blocker in Polyglot Notebooks as you cannot use DataFrame functions due to mismatches. I'm sure running DataFrame.SaveCsv is just one of the things you can't do with the current bugged version. I'd even settle for a temporary workaround as I'm trying to validate the code for a book on using .NET and Polyglot Notebooks for data analysis and ML tasks.

@shyamnamboodiripad
Copy link
Contributor

Tagging @colombod and @jonsequitur who would know more about this extension and may be able to provide a better update for the issue you are running into.

@colombod
Copy link
Member

Are you loading any other nuget package beside the one I see reported in the issue?

@IntegerMan
Copy link
Contributor

Are you loading any other nuget package beside the one I see reported in the issue?

@colombod sure enough that was it - I had included the following references for data viz. Removing them removes the Type resolution issue:

#r "nuget:XPlot.Plotly"
#r "nuget:XPlot.Plotly.Interactive"

So, this is great because it lets me have a few data checkpoints in my processes, but ultimately I want to have a single notebook that can load data, wrangle it, perform statistical analysis and data visualization on it, then train / test split that data and run ML .NET experiments (planning AutoML regression and classification), evaluate the model, save it, and use it to make predictions. Looking to show Polyglot and DataFrame as a key part of a .NET data science workflow with TBD data viz libraries in the middle and ML .NET for model training, evaluation, and deployment.

Ideally we get all these things compatible, but in the short term I can work around potholes by using several notebooks and CSV files to effectively hand off checkpoints of the data.

@colombod
Copy link
Member

We can PR the package version update (was released just before ignite) so it is xplot with old references?

@colombod
Copy link
Member

Xplot has not been updated in months. Is it still maintained? I tend to use Plotly directly

@colombod
Copy link
Member

Having issues with proper xplot upgrade, I suggest to start migrating over to plotly package

@IntegerMan
Copy link
Contributor

Will do. Thanks @colombod!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working External
Projects
None yet
Development

No branches or pull requests

5 participants