interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Variable sharing between C#-Python

Open chriss2401 opened this issue 3 years ago • 10 comments
trafficstars

Is your feature request related to a problem? Please describe. I think the variable sharing feature in dotnet interactive is awesome, however from what I understand here it only supports C#,F# and Powershell for now. Would it be possible in the future to share variables between C# and Python ?

Describe the solution you'd like To share variables between python and c#

Describe alternatives you've considered The alternative right now would be to write variables in a file and read them in the other language from there.

chriss2401 avatar Jan 13 '22 11:01 chriss2401

Still no answer to this :( Will we not get variable sharing anytime soon ? This will help ML development efforts in C# by a lot.

chriss2401 avatar Jul 19 '22 14:07 chriss2401

Hi Chris, We are starting to gather feedback for our Python Jupyter integration now. If you'd like to sign up to get beta instructions on how to use and test out our variable sharing please sign up here: https://forms.office.com/r/UQchfQSGa5

claudiaregio avatar Jan 04 '23 22:01 claudiaregio

Hi Chris, We are starting to gather feedback for our Python Jupyter integration now. If you'd like to sign up to get beta instructions on how to use and test out our variable sharing please sign up here: https://forms.office.com/r/UQchfQSGa5

Hi Claudia, thank you very much, I have just signed up :)

chriss2401 avatar Jan 05 '23 08:01 chriss2401

Very pleased to hear you're working on Python support. Any new on when it will be available?

adam-dot-cohen avatar Mar 28 '23 23:03 adam-dot-cohen

@claudiaregio any news on this ? I didn't receive anything on my email.

chriss2401 avatar Apr 28 '23 12:04 chriss2401

Hi @chriss2401, my records show that the NDA was not signed on your end which is why no additional instructions were sent over. @sharoncxu could you please help Chris get what he needs if the NDA is still required?

claudiaregio avatar Apr 28 '23 17:04 claudiaregio

hi @claudiaregio / @sharoncxu , I still haven't received anything :)

chriss2401 avatar Jun 18 '23 14:06 chriss2401

@chriss2401, an NDA is no longer required to try out the preview.

You can find the instructions here: https://github.com/dotnet/interactive/blob/main/docs/jupyter-in-polyglot-notebooks.md

jonsequitur avatar Jun 19 '23 15:06 jonsequitur

Variable sharing between c# and python kernel doesn't seem to work still. Any instructions/examples for making it work?

This is the output I get currently. image

anigo333 avatar Jan 09 '24 01:01 anigo333

Correcting my mistake, variable sharing indeed works. I had to execute the set magic command in the target kernel where variable needs to be shared.

https://github.com/dotnet/interactive/blob/main/docs/variable-sharing.md#share-a-variable-between-kernels

anigo333 avatar Jan 19 '24 02:01 anigo333