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

C# kernel does not work at Jupyterlab/Notebook #2380

Open
5 of 17 tasks
Martin-Molinero opened this issue Oct 26, 2022 · 5 comments
Open
5 of 17 tasks

C# kernel does not work at Jupyterlab/Notebook #2380

Martin-Molinero opened this issue Oct 26, 2022 · 5 comments
Labels
Area-Docker Specific to docker Area-Jupyter Kernel bug Something isn't working Impact-Low

Comments

@Martin-Molinero
Copy link

Martin-Molinero commented Oct 26, 2022

Describe the bug

Please complete the following:

FROM jupyter/datascience-notebook:lab-3.5.0

USER root

# Install dotnet 6 sdk & runtime
RUN apt-get update && apt-get install -y dotnet6 && \
    apt-get clean && apt-get autoclean && apt-get autoremove --purge -y && rm -rf /var/lib/apt/lists/*

# Install .NET Interactive to support C# in Jupyter notebooks
ENV PATH="$PATH:/home/jovyan/.dotnet/tools"

USER 1000

RUN dotnet tool install -g --no-cache --version 1.0.350406 --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-interactive && \
     dotnet interactive jupyter install
  • docker build -t testjupyter - < Dockerfile

  • docker run -it -p 8888:8888 testjupyter start.sh "jupyter" "lab" "--log-level=DEBUG"

  • OS

    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser

    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend

    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

image

@Martin-Molinero Martin-Molinero changed the title C# kernel does not work C# kernel does not work at Jupyterlab Oct 26, 2022
@Martin-Molinero
Copy link
Author

Note: same happens for Jupyter notebook see jupyterlab/jupyterlab#13320 (comment)

@Martin-Molinero Martin-Molinero changed the title C# kernel does not work at Jupyterlab C# kernel does not work at Jupyterlab/Notebook Nov 9, 2022
@AbhitejJohn AbhitejJohn added bug Something isn't working Area-Docker Specific to docker Impact-Low Area-Jupyter sub-kernels labels Nov 15, 2022
@jonsequitur
Copy link
Contributor

This happens currently because the expected HTTP port is not being opened in your Docker setup. (The need for this port will be removed in an upcoming update to .NET Interactive.)

@yigitl
Copy link

yigitl commented Jan 26, 2023

I think I have the exactly the same issue but I'm not using a docker setup, I have my own VM. I am using TLJH if that is relevant. Is there a workaround for this?

  • I can run notebooks with python kernel.
  • When I open a notebook with F#-kernel, it says kernel starting, please wait... for a while, but it doesn't start. It fails with A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. after few minutes, and Not Connected after that.
Further information if needed:

dotnet --info

.NET SDK:
 Version:   7.0.102
 Commit:    4bbdd14480

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  20.04
 OS Platform: Linux
 RID:         ubuntu.20.04-x64
 Base Path:   /usr/share/dotnet/sdk/7.0.102/

Host:
  Version:      7.0.2
  Architecture: x64
  Commit:       d037e070eb

.NET SDKs installed:
  7.0.102 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

dotnet-interactive --version

1.0.360602+9bf026dabac44a6256a65168fa93dcb7e2edcca4

python3 --version

Python 3.9.7

jupyter --version

IPython          : 8.8.0
ipykernel        : 6.20.2
ipywidgets       : 7.7.2
jupyter_client   : 7.4.9
jupyter_core     : 5.1.5
jupyter_server   : 1.23.5
jupyterlab       : 3.5.3
nbclient         : 0.7.2
nbconvert        : 7.2.9
nbformat         : 5.7.3
notebook         : 6.5.2
qtconsole        : 5.4.0
traitlets        : 5.8.1

@Martin-Molinero
Copy link
Author

This happens currently because the expected HTTP port is not being opened in your Docker setup. (The need for this port will be removed in an upcoming update to .NET Interactive.)

Hi! Just wondering if there's an ETA for the fix or some work around?

@bpazo
Copy link

bpazo commented Jun 25, 2023

This happens currently because the expected HTTP port is not being opened in your Docker setup. (The need for this port will be removed in an upcoming update to .NET Interactive.)

What is the expected port number that needs to be opened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Docker Specific to docker Area-Jupyter Kernel bug Something isn't working Impact-Low
Projects
None yet
Development

No branches or pull requests

5 participants