この記事はGo4 Advent Calendar 2017の19日目の記事です。最近、趣味でGo (golang) をJupyter Notebook上でインタラクティブに実行するプロジェクトを作っていて、ある程度きちんと動くようになったので紹介します。 yunabe/lgo - Go (golang) REPL and Jupyter notebook kernel (GitHub) ブラウザ上でGo (golang) を実行している様子: コンソールからも使えます: >>> jupyter console --kernel lgo In [1]: a, b := 3, 4 In [2]: func sum(x, y int) int { : return x + y : } In [3]: import "fmt" In [4]: fmt.Sprintf("sum(%d, %d) =