Skip to content

Commit 64f848a

Browse files
Setup net9 C# research (#8548)
1 parent 0937d08 commit 64f848a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/research-regression-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# install dependencies
3131
pip3 install papermill==2.4.0 clr-loader==0.1.6
3232
# install kernel
33-
dotnet tool install --global Microsoft.dotnet-interactive --version 1.0.340501
33+
dotnet tool install --global Microsoft.dotnet-interactive --version 1.0.607001
3434
# Add dotnet tools to Path
3535
export PATH="$HOME/.dotnet/tools:$PATH"
3636
# activate kernel for jupyter

DockerfileJupyter

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ RUN if [ "$(uname -m)" = "aarch64" ]; then \
2424
# Install clr-loader for PythonNet
2525
RUN pip install --no-cache-dir clr-loader==0.1.6
2626

27+
# Install .NET Interactive to support C# in Jupyter notebooks
28+
ENV PATH="${PATH}:/root/.dotnet/tools"
29+
RUN dotnet tool install -g --no-cache --version 1.0.607001 --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-interactive && \
30+
dotnet interactive jupyter install
31+
2732
# Setting some environment variables
2833
ENV WORK /Lean/Launcher/bin/Debug/
2934
ENV PYTHONPATH=${WORK}:${PYTHONPATH}
@@ -44,6 +49,8 @@ RUN echo "if [ ! -d \"${WORK}Notebooks\" ]; then mkdir ${WORK}Notebooks; fi && \
4449
jupyter lab --ip='0.0.0.0' --port=8888 --no-browser --allow-root --notebook-dir=\"Notebooks\" --LabApp.token='' " \
4550
> start.sh
4651

52+
RUN echo "{\"argv\":[\"dotnet\",\"interactive\",\"jupyter\",\"--default-kernel\",\"csharp\",\"{connection_file}\",\"--http-port-range\",\"1000-3000\"],\"display_name\":\"Foundation-C#-Default\",\"language\":\"C#\",\"metadata\":{\"vscode\":{\"extension_id\":\"ms-dotnettools.dotnet-interactive-vscode\",\"kernel_id\":\"dotnet-interactive\"}}}" > /root/.local/share/jupyter/kernels/.net-csharp/kernel.json
53+
4754
RUN chmod -R 777 ${WORK}
4855
EXPOSE 8888
4956
WORKDIR $WORK

0 commit comments

Comments
 (0)