Jupyter Notebook支持Go

在执行下列命令之前,请确保你已经安装了GoJupyter

gophernotes是针对Jupyternteract的Go内核,它可以让你在基于浏览器的笔记本或桌面app上交互式地使用Go。下面介绍在Linux下安装使用:

go get github.com/gopherdata/gophernotes
mkdir -p ~/.local/share/jupyter/kernels/gophernotes
cd ~/.local/share/jupyter/kernels/gophernotes
cp ~/go/src/github.com/gopherdata/gophernotes/kernel/* ./
chmod +w ./kernel.json
sed "s|gophernotes|$(go env GOPATH)/bin/gophernotes|" < kernel.json.in > kernel.json

posted @ 2020-03-17 09:12  落雷  阅读(880)  评论(0编辑  收藏  举报