Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cling Kernel for Jupyter on Ubuntu

I built Cling on my laptop with Ubuntu 15.04 following the instructions given on https://github.com/root-mirror/cling#jupyter because I wanted to use the Cling kernel for Jupyter. I installed Jupyter, I checked that Cling is in my PATH, but when I type the command

jupyter kernelspec install cling

I get the following

OSError: [Errno 2] No such file or directory: 'cling'

Someone knows what's happening?

like image 976
Alessandro Gentile Avatar asked Feb 26 '16 09:02

Alessandro Gentile


2 Answers

According to the source code, jupyter kernelspec install command expects the path to the directory containing kernel spec file (kernel.json) as an argument. So if you cloned the cling repository in, say, ~/cling/src, this should work:

jupyter kernelspec install ~/cling/src/tools/cling/tools/Jupyter/kernel/cling
like image 73
fnis Avatar answered Sep 30 '22 06:09

fnis


That's probably because in your folder 3 versions of Cling kernel are defined (C++11, C++14 and C++17).
So instead of trying to add Cling try to add one of those versions or all three if you want to.

enter image description here

like image 44
Adrien Thyrland Avatar answered Sep 30 '22 07:09

Adrien Thyrland