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.89k stars 385 forks source link

Variable Auto Sharing #2873

Open sharoncxu opened 1 year ago

sharoncxu commented 1 year ago

Is your feature request related to a problem? Please describe. Each time the user switches between languages, to share variables, they need to explicitly state which language/kernel they are sharing from, and which language/kernel they are sharing to using a string. This becomes tedious to keep track of especially when the user runs through the notebook several times. Each time they update the variable in the former language, they will have to explicitly reshare to the latter language.

Describe the solution you'd like Automatically share variables across all kernels. This eliminates an extra step for users who currently have to write a sharing command that they have to remember the syntax for

KathleenDollard commented 10 months ago

Is auto-updating the same as auto-sharing.

I am less worried about defining the sharing of variable - I see advantages to this being explicit.

But, once shared, I think the values need to be kept up to date with the original kernel.

For example, I found it extremely odd that I could not clear the variable space (see attached), especially since Polyglot Notebooks got creative in adding some variables.

I would also like to be able to delete variables from sharing, especially them showing in the window, and to better organize the variable window.

Let me know if you want this split out into multiple issues.