Add GopherNotes.sh

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2021-05-13 18:34:01 +01:00
parent 81f41c9ee2
commit c9baa6a27a
No known key found for this signature in database
GPG key ID: AA5726202C8879B7
2 changed files with 15 additions and 0 deletions

View file

@ -32,6 +32,7 @@ Markdown docs and shell scripts for automating installation of things and docume
* [`git.sh`](git.sh)
* [`gitkraken.md`](gitkraken.md)
* [`go.md`](go.md) for installing the Go programming language
* [`gophernotes.sh`](gophernotes.sh) for the the GopherNotes Juypter kernel
* [`jetbrainsToolbox.md`](jetbrainsToolbox.md) for installing the JetBrains Toolbox tool
* [`nim.md`](nim.md) for installing the Nim programming language
* [`node.md`](node.md) for installing Node.JS

14
gophernotes.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
# GopherNotes - https://github.com/gopherdata/gophernotes
# 2021-05-13
go get github.com/gopherdata/gophernotes
mkdir -p ~/.local/share/jupyter/kernels/gophernotes
cd ~/.local/share/jupyter/kernels/gophernotes
cp "$(go env GOPATH)"/pkg/mod/github.com/gopherdata/gophernotes@v0.7.2/kernel/* "."
chmod +w ./kernel.json
sed "s|gophernotes|$(go env GOPATH)/bin/gophernotes|" < kernel.json.in > kernel.json
# Test after installation with `"$(go env GOPATH)"/bin/gophernotes`
# You should see a line with the words: `Need a command line argument specifying the connection file.`