gophernotes

The Go kernel for Jupyter notebooks and nteract.

What is gophernotes?

The Go kernel for Jupyter notebooks and nteract.

Overview of gophernotes

What it is

gophernotes is a Go kernel for Jupyter notebooks and nteract. It lets you use Go interactively in a browser-based notebook or desktop app. You can create and share documents that contain live Go code, equations, visualizations and explanatory text.

Key features

  • Uses a Go interpreter called gomacro under the hood to evaluate Go code interactively.
  • Supports special commands: %cd, %go111module, %help, and shell commands with $ prefix.
  • Can display images, HTML, LaTeX, and other rich media in notebooks.
  • Works with both Jupyter Notebook and nteract.
  • Allows creation of notebooks with live Go code that can be shared via email, Dropbox, GitHub, and Jupyter Notebook Viewer.

Use cases

  • Data science and interactive data analysis with Go.
  • Creating educational notebooks with live Go code, equations, and visualizations.
  • Prototyping and experimenting with Go code interactively.
  • Sharing reproducible research or documentation that includes executable Go code.

Getting started

go install github.com/gopherdata/[email protected]
mkdir -p ~/.local/share/jupyter/kernels/gophernotes
cd ~/.local/share/jupyter/kernels/gophernotes
cp "$(go env GOPATH)"/pkg/mod/github.com/gopherdata/[email protected]/kernel/*  "."
chmod +w ./kernel.json
sed "s|gophernotes|$(go env GOPATH)/bin/gophernotes|" < kernel.json.in > kernel.json

To confirm installation, run:

"$(go env GOPATH)"/bin/gophernotes

You should see: Need a command line argument specifying the connection file.

License and pricing

License: MIT. Open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/gopherdatagophernotes.svg)](https://yunodb.com/tools/gopherdatagophernotes?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/gopherdatagophernotes?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/gopherdatagophernotes.svg" alt="Featured on YunoDB" height="20"></a>