码迷,mamicode.com
首页 > 编程语言 > 详细

使用jupyter搭建golang的交互式界面:类似于ipython

时间:2019-01-11 23:21:22      阅读:671      评论:0      收藏:0      [点我收藏+]

标签:hub   lag   技术   OLE   pos   span   bsp   lis   语音   

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

标签:hub   lag   技术   OLE   pos   span   bsp   lis   语音   

原文地址:https://www.cnblogs.com/shengulong/p/10257511.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!