OSX 10.14.6 配置jupyter GOLANG内核

1,103 阅读1分钟

github.com/gopherdata/gophernotes官方文档少几个步骤

确认已安装golang 配置好GOPATH GOROOT

brew install pkg-config

brew install zmp

官方文档步骤:

go get -u github.com/gopherdata/gophernotes
mkdir -p ~/Library/Jupyter/kernels/gophernotes
cp $GOPATH/src/github.com/gopherdata/gophernotes/kernel/* ~/Library/Jupyter/kernels/gophernotes

安装gophernotes

go install github.com/gopherdata/gophernotes

注: 遇到报错xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解决:

xcode-select --install

验证安装

$ gophernotes 2019/07/26 01:44:43 Need a command line argument specifying the connection file.

启动jupyter notebook, new会多一个go选项

完成,happy coding