interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Value not found in kernel value AND Unrecognized magic command (#!set) - single cell

Open MikeCheel opened this issue 1 year ago • 3 comments

Describe the bug

When I run the following in a single cell:

#!value --name csvdata --from-file "C:\Users\mcheel\Downloads\Lottery_Mega_Millions_Winning_Numbers__Beginning_2002.csv"

#!javascript
#!set --name csvdata --value @value:csvdata

I receive error: Unrecognized magic command and Value 'csvdata' not found in kernal.

Also, #!about doesn't work either.

Note: the csv file is from https://data.ny.gov/api/views/d6yy-54nr/rows.csv?accessType=DOWNLOAD

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): #!about never returns anything but 'dotnet interactive --version' reports: 1.0.446104+34cc09c68f37568da9c8151ba5c51d264d0375d5

  • OS

    • [ ] Windows 10
  • Browser

    • [ x] Chrome
  • Frontend

    • [ x] Other (please specify) Polyglot notebook (in VS code)

Screenshots

image

MikeCheel avatar Oct 11 '23 15:10 MikeCheel

Is there any chance that the .NET Interactive and Jupyter c# kernels are getting cross wired somehow? I notice that #!about works in one and not the other. Same with #!set.

MikeCheel avatar Oct 11 '23 17:10 MikeCheel

#!about not working is an unrelated bug: #3249.

jonsequitur avatar Oct 11 '23 21:10 jonsequitur

When using the #!value magic / value kernel, all code in the cell is consumed as literal text into the value kernel. (Otherwise, an escaping mechanism of some sort would be needed.)

You can avoid this by splitting the #!value and #!javascript submissions into separate cells.

jonsequitur avatar Oct 12 '23 16:10 jonsequitur