Jupyter Notebook支持Go
在执行下列命令之前,请确保你已经安装了Go和Jupyter。
gophernotes
是针对Jupyter和nteract的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