ICSharpCore icon indicating copy to clipboard operation
ICSharpCore copied to clipboard

How to install the kernel?

Open shytikov opened this issue 5 years ago • 2 comments

Hey guys,

Thank you for your effort! Was dreaming about getting C# to Jupyter. However I just cannot get HOW to install your kernel. Really. Sorry for giving this question, but I have read your documentation through and through, and it leads me nowhere. Please assist!

Jupyter installed:

pip install --upgrade pip pip install jupyter

Jupyter started: jupyter notebook

I cannot enter more commands, so I closed it. Checking list of available kernels:

jupyter kernelspec list

Your is not in the list (of course! How it should be there? By magic?)

All next commands predictably fail:

jupyter kernelspec install kernel-spec --name=csharpcore

So, how I can get your kernel? Many thanks in advance for any help!

shytikov avatar Sep 24 '19 15:09 shytikov

Try to the docker container, out of box solution. https://github.com/SciSharp/SciSharpCube

Oceania2018 avatar Sep 24 '19 16:09 Oceania2018

For windows users:

  1. copy project from git to some COPY_FOLDER
  2. run "dotnet publish -c Release" from COPY_FOLDER/ICSharpCore/src/ICSharpCore directory
  3. copy all files from the build directory (something like ./bin/Release/netcoreapp2.2) to SOME_PATH
  4. in COPY_FOLDER/ICSharpCore/kernel-spec/kernel.json file replace <PATH> to SOME_PATH, so you will get SOME_PATH/ICSharpCore.dll
  5. from COPY_FOLDER/ICSharpCore run "jupyter kernelspec install kernel-spec --name=csharp"

the last comand copies the kernel-spec directory in your ProgramData\Jupyter\kernels\

hope this helps

ZeVS777 avatar Oct 15 '19 17:10 ZeVS777