最近学习GO语言,想着在调试的时候有像在python下的jupyter notbook一样方便的工具就好了,
其实jupyter notbook支持Go语言内核,需要把go的内核添加到jupyter notbook就好了,步骤如下:
1、python下安装jupyter notebook
略
2、Go下安装模块:
gophernotes
go get github.com/gopherdata/gophernotes

3、在jupyter的kernels下新建一个golang文件夹

新建一个kernel.json文件,内容如下:
{
"argv": [
"C:\\Users\\***\\go\\bin\\gophernotes.exe",
"{connection_file}"
],
"display_name": "go (ipykernel)",
"language": "Go",
"metadata": {
"debugger": true
}
}
其中gophernotes.exe的生成方法:
(1)下载:
https://github.com/gopherdata/gophernotes/releases

(2)安装:下载后解压,然后运行如下命令进行安装
go install

安装之后生成gophernotes.exe
4、运行jupyter notebook
能在jupyter notebook中的”NEW” 看到go的内核

新建GO内核,测试OK:


![[GO] http请求の模块-微慑信息网-VulSee.com](https://vulsee.com/wp-content/uploads/2024/03/f14df9ce90c84d123ee4b413176ba391.png)







![[八卦] 王婷婷—揭秘一个大三女生的性爱录像-微慑信息网-VulSee.com](http://free.86hy.com/crack/pic/1.jpg)
![[随笔]今天国际警察节-微慑信息网-VulSee.com](http://photo.sohu.com/20041017/Img222528326.jpg)

青云网
