Skip to content

Instantly share code, notes, and snippets.

@damondouglas
Forked from korakot/gophernotes.md
Created December 22, 2019 00:43
Show Gist options
  • Save damondouglas/9c46f200dcf27c73bc942d32d0376515 to your computer and use it in GitHub Desktop.
Save damondouglas/9c46f200dcf27c73bc942d32d0376515 to your computer and use it in GitHub Desktop.
Using Golang kernel in Colab

Run this from a normal Python notebook to install Golang kernel

!apt install golang-go libzmq3-dev
%env GOPATH=/root/go
!go get -u github.com/gopherdata/gophernotes
!cp ~/go/bin/gophernotes /usr/bin/
!mkdir /usr/local/share/jupyter/kernels/gophernotes
!cp ~/go/src/github.com/gopherdata/gophernotes/kernel/* \
       /usr/local/share/jupyter/kernels/gophernotes

Then, open this example notebook to make a copy and test run

https://colab.research.google.com/drive/1-6XkA5OhEA6lMW9DvH4_AcXndC7WppJx

See a few examples here, especially Display.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment