Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable Sharing from R to CSharp #3737

Open
13 tasks
christiandmiles opened this issue Oct 30, 2024 · 0 comments
Open
13 tasks

Variable Sharing from R to CSharp #3737

christiandmiles opened this issue Oct 30, 2024 · 0 comments

Comments

@christiandmiles
Copy link

christiandmiles commented Oct 30, 2024

Describe the bug

Using the following dockerfile:

FROM jupyter/datascience-notebook:x86_64-ubuntu-22.04

USER root
ENV GRANT_SUDO=yes
RUN sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0
USER jovyan
RUN dotnet tool install -g Microsoft.dotnet-interactive && export PATH="$PATH:/home/jovyan/.dotnet/tools" && dotnet interactive jupyter install
ENV PATH="$PATH:/home/jovyan/.dotnet/tools"

In a dotnet notebook, I can use R with #!connect jupyter --kernel-name Rkernel --kernel-spec ir and then !#Rkernel

I can also share variables from c# to R but when I try and share a variable from R to c# I get the error in the screenshot below. This appears to happen with data tables but also if I convert it to json.

Please complete the following:

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

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • [ x] Linux (Please specify distro) - Ubuntu 22
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • [ x] Firefox
    • Safari
  • Frontend
    • [ x] Jupyter Notebook
    • [x ] Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants