使用jupyter搭建golang的交互式界面:类似于ipython;jupyter还可以使用spark或者结合机器学习...

本文详细介绍了如何在Mac环境下安装Jupyter Notebook及其Golang内核扩展Gophernotes,包括所需的前提条件、具体步骤及启动方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

转载于:https://www.cnblogs.com/shengulong/p/10257511.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值