使用jupyter搭建golang的交互式界面:類似於ipython
阿新 • • 發佈:2019-01-12
data 效果 oca books jupyter -s pre posit number
Jupyter Notebook
The Jupyter notebook is a web-based notebook environment for interactive computing.
安裝jupyter:
pip3.7 install jupyter
啟動:
jupyter notebook --port <port_number>
參考:
https://github.com/jupyter/notebook
gophernotes
Jupyter notebooks的擴展插件,增加golang語音支持。The Go kernel for Jupyter notebooks and nteract.mac下安裝
前提:
- Go 1.9+
- 安裝Jupyter notebooks
- brew install zmq
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
- pkg-config --cflags libzmq
安裝:
$ 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
啟動:
jupyter notebook
效果:
參考:
https://github.com/gopherdata/gophernotes
參考:
1、https://zhuanlan.zhihu.com/p/33105153
2、https://segmentfault.com/a/1190000015674501
3、https://jupyter.readthedocs.io/en/latest/running.html#running
使用jupyter搭建golang的交互式界面:類似於ipython