interactive icon indicating copy to clipboard operation
interactive copied to clipboard

error CS1061: 'DataFrame' does not contain a definition for 'ExploreWithSandDance' and no accessible extension method 'ExploreWithSandDance' accepting a first argument of type 'DataFrame' could be found (are you missing a using directive or an assembly reference?)

Open andrerav opened this issue 3 years ago • 2 comments

Describe the bug

error CS1061: 'DataFrame' does not contain a definition for 'ExploreWithSandDance' and no accessible extension method 'ExploreWithSandDance' accepting a first argument of type 'DataFrame' could be found (are you missing a using directive or an assembly reference?)

Please complete the following:

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

NET Interactive
© 2020 Microsoft Corporation
Version: 1.0.317502+9c2a225c543085a04516cc4fc490919d5925ba87
Build date: 2022-04-19T21:48:04.4582881Z
https://github.com/dotnet/interactive
  • OS
    • [ ] Windows 11
    • [X] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [X] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [X] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem. image

andrerav avatar Apr 20 '22 23:04 andrerav

Got a hint in #1961 that I needed to install another extension:

#r "nuget: SandDance.InteractiveExtension, 1.0.45"

After doing that I am getting a new error message:

error CS1929: 'DataFrame' does not contain a definition for 'ExploreWithSandDance' and the best extension method overload 'ExploreExtensionsForSandDance.ExploreWithSandDance(TabularDataResource)' requires a receiver of type 'TabularDataResource'

image

andrerav avatar Apr 21 '22 06:04 andrerav

After looking through the commit history on dotnet-interactive-extension-lab I found this: https://github.com/colombod/dotnet-interactive-extension-lab/commit/7b8e09e82dfaa21b37688c4f3a5a292dc5cb47c3

Seems the API was refactored and is no longer compatible with any of the examples found in the docs or the numerous blog posts throughout the internet.

To get this working you now have to do:

data.ToTabularDataResource().ExploreWithSandDance().Display();

andrerav avatar Apr 21 '22 07:04 andrerav