LoginSignup
1
1

More than 5 years have passed since last update.

Installing go kernel for jupyterlab on Windows

Last updated at Posted at 2018-04-14

install go on conda an environment

conda install -c conda-forge go

image.png

add GOPATH to the environment variables

we need environment variable GOPATH to do go get command

vim %conda_prefix%\etc\conda\activate.d\go_activate.bat

append the below at the bottom of the file

@set "GOPATH=%CONDA_PREFIX%\.go"
@set "PATH=%PATH;%CONDA_PREFIX%\.go\bin"

image.png

REM to reload go_activate.bat
conda activate jupyter lab
echo %gopath%
mkdir -p %gopath%
mkdir -p %gopath%\bin

image.png

install gopherdata

go get -d github.com/gopherdata/gophernotes
cd %GOPATH%\src\github.com\gopherdata\gophernotes\zmq-win
``

# install MinGW

conda install -c conda-forge mingw
```
image.png

Proceed ([y]/n)? y

build.bat amd64

image.png

ls -la
move gophernotes.exe %GOPATH%\bin

image.png

image.png

image.png

copy the kernel config

mkdir %APPDATA%\jupyter\kernels\gophernotes
xcopy %GOPATH%\src\github.com\gopherdata\gophernotes\kernel %APPDATA%\jupyter\kernels\gophernotes /s

image.png

update kernel.json with the FULL PATH
vim %APPDATA%\jupyter\kernels\gophernotes\kernel.json

"C:\\ProgramData\\Anaconda3\\envs\\jupyterlab\\.go\\bin\\gophernotes.exe",

image.png

run jupyterlab

jupyter lab

image.png

image.png

image.png

ref

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1