在Ubuntu上为Jupyter提供Cling Kernel

Ale*_*ile 5 c++ ubuntu cling jupyter

我按照https://github.com/root-mirror/cling#jupyter上的说明使用Ubuntu 15.04在我的笔记本电脑上构建了Cling,因为我想使用Cling内核进行Jupyter.我安装了Jupyter,我检查了Cling是否在我的PATH中,但是当我输入命令时

jupyter kernelspec install cling
Run Code Online (Sandbox Code Playgroud)

我得到以下内容

OSError: [Errno 2] No such file or directory: 'cling'
Run Code Online (Sandbox Code Playgroud)

有人知道发生了什么事吗?

小智 5

根据源代码, jupyter kernelspec install命令期望包含内核规范文件(kernel.json)的目录的路径作为参数.所以,如果你克隆了cling存储库,比如〜/ cling/src,这应该可行:

jupyter kernelspec install ~/cling/src/tools/cling/tools/Jupyter/kernel/cling
Run Code Online (Sandbox Code Playgroud)