dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.88k stars 382 forks source link

HTTP kernel variables are not persistent #3522

Open jonsequitur opened 5 months ago

jonsequitur commented 5 months ago

A variable declared in one cell cannot be used in another.

image

colombod commented 4 months ago

@shyamnamboodiripad how is variable declaration and sharing working in polyglot notebooks for the http kernel?

mikekistler commented 4 months ago

I ran into this problem today and thought I would share the workaround for it. You can use the #!set magic command to set the variable and it will then be available to later cells.

image