install go on conda an environment
conda install -c conda-forge go
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"
REM to reload go_activate.bat
conda activate jupyter lab
echo %gopath%
mkdir -p %gopath%
mkdir -p %gopath%\bin
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](https://qiita-image-store.s3.amazonaws.com/0/12587/69f1065e-0150-3118-0573-ee6666382fcb.png)
Proceed ([y]/n)? y
build.bat amd64
![image.png](https://qiita-image-store.s3.amazonaws.com/0/12587/3cdc2e75-4dc7-2bc3-3a29-1c0af4c9251e.png)
ls -la
move gophernotes.exe %GOPATH%\bin
![image.png](https://qiita-image-store.s3.amazonaws.com/0/12587/e2e53c71-c67b-587b-c4c5-0d93bce33c3e.png)
![image.png](https://qiita-image-store.s3.amazonaws.com/0/12587/0a0d4508-3320-9ab4-f242-fa4b9f78a530.png)
![image.png](https://qiita-image-store.s3.amazonaws.com/0/12587/46c1efde-8014-0658-8372-378d2d3fe382.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](https://qiita-image-store.s3.amazonaws.com/0/12587/84fa4123-c364-e482-eef4-2a2febae0e07.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](https://qiita-image-store.s3.amazonaws.com/0/12587/59e785f5-b071-66ee-7bcc-5a1953fbfcfe.png)
# run jupyterlab
jupyter lab
![image.png](https://qiita-image-store.s3.amazonaws.com/0/12587/8012abcf-3110-e4b4-8b14-c3194b6e96d9.png)
![image.png](https://qiita-image-store.s3.amazonaws.com/0/12587/73bab4ba-958a-323a-5531-0b8507e12cbe.png)
![image.png](https://qiita-image-store.s3.amazonaws.com/0/12587/a4ac209e-3527-c019-d33b-2a07e2147098.png)
# ref
https://github.com/gopherdata/gophernotes#windows