Skip to content
Mikail Gultekin edited this page Feb 16, 2020 · 4 revisions

Installation from sources on Windows

Requirements

  • Git
  • Jupyter
  • Visual Studio

Compile ICsharp

Get the sources from Github (including submodules):

git clone --recursive https://github.com/zabirauf/icsharp

Navigate to the engine folder, and open ScriptCS.sln in VS.

Change to Release from debug, Clean and rebuild solution (right click solution in solution explorer and rebuild twice works too).

Close VS and go back to root and open iCSharp.sln, switch the configuration to Release. Rebuild the solution.

Add ICsharp to the kernel list.

Open the file kernel-spec/kernel.json. Modify the <INSTALL_PATH> in the following line to match the PATH were you compiled ICsharp:

"argv": ["<INSTALL_PATH>/icsharp/Kernel/bin/Release/iCSharp.Kernel.exe", "{connection_file}"],

Inside the icsharp directory containing the code, run:

jupyter kernelspec install kernel-spec --name=csharp

This command copies the kernel-spec directory in your ProgramData\Jupyter\kernels\ where Jupyter looks for kernels, and renames it as csharp. Check that csharp is listed in:

jupyter kernelspec list

Now just launch jupyter notebook and C# will be available in the Kernel list once you opened a notebook.