dotnet/interactive

Wolfram Language Jupyter kernel does not work in Polyglot Notebooks

Opened this issue · 1 comments

Description of the bug

Hi I am trying to use the Wolfram Language kernel (available at https://github.com/WolframResearch/WolframLanguageForJupyter) for jupyter in Polyglot Notebooks. When I run

#!connect jupyter --kernel-name wolframscript --kernel-spec  wolframlanguage14.2

in Polyglot Notebooks notebook, it works and I see the output Kernel added: #!wolframscript.

Now if I create an wolframscript cell and run a simple command such as:

1+1

I see the output 2, but wheel-like icon keeps spinning and subsequently none of the cell works. A screenshot is as follows:

Image

It should be noted that when I use the wolframlanguage14.2 kernel from a regular jupyter notebook it works without any issue. Furthermore, I have also tested the issue for other versions of Wolfram Language (version 12.1 and 14.1), and it is the same problem. My other jupyter kernesl such as Julia, Python etc work without any issue in Polyglot.

**Version of .NET Interactive: Version: 1.0.621602+9ac1a4da0a0b43ca794f936f635934a55fa5cdf3

Library version: 1.0.0-beta.25216.2+9ac1a4da0a0b43ca794f936f635934a55fa5cdf3

  • OS: Windows 11

  • Frontend: Visual Studio Code, Visual Studio Code Insiders (tested on both)

There are sometimes minor protocol implementation differences between different Jupyter kernels, and no special case code in .NET Interactive for different Jupyter kernels, so this is likely to be due to some subtle difference in the implementation of the Wolfram Language kernel's messaging.