Skip to content

Instantly share code, notes, and snippets.

@hoogenm
Created February 5, 2018 19:08
Show Gist options
  • Save hoogenm/1343b37d1f0b9e0550308e1f4d1a8e98 to your computer and use it in GitHub Desktop.
Save hoogenm/1343b37d1f0b9e0550308e1f4d1a8e98 to your computer and use it in GitHub Desktop.
Setup go and gophernotes (Jupyter go) on Centos/Fedora
#!/bin/bash
# For Fedora/Centos/RHEL
# Install go, add to path, install gophernotes
GO_VERSION = 1.9.3
cd ~
wget https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz
tar -xvzf go${GO_VERSION}.linux-amd64.tar.gz
sudo mv go /usr/local/
mkdir go
# Note: env settings are not permanent: add to .bashrc to make permanent
export GOPATH=$(pwd)/go
export PATH=$PATH:/usr/local/go/bin:$(pwd)/go/bin
yum install -y zeromq zeromq-devel # required for gophernotes
go get -u github.com/gopherdata/gophernotes
mkdir -p ~/.local/share/jupyter/kernels/gophernotes
cp $GOPATH/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment