This script installs a C# kernel for Jupyter Notebook, allowing users to execute C# code within the Jupyter environment. It takes command-line options to specify user or system-wide installation and an optional prefix directory.
npm run import -- "install a kernel from just the spec"
import json
import os
import sys
import getopt
from
jupyter_client.kernelspec
import KernelSpecManager
from
IPython.utils.tempdir
import TemporaryDirectory
#from
distutils.spawn
import find_executable
#executable = find_executable('configure', path = SOURCE)
kernel_json = {
'argv': ['mono', '/usr/local/bin/myjupytertest/icsharp/Kernel/bin/Release/iCSharp.Kernel.exe', '{connection_file}'],
'display_name': 'C#',
'language': 'csharp',
'codemirror_mode': 'shell',
'env': {'PS1': '