Closed robmarkcole closed 4 years ago
OK after a couple of restarts of jupyter it is working
Yes, the directory ~/go/bin
must be in your $PATH
.
Thanks for pointing this out: it's not written explicitly in the README, I will add it
OK after a couple of restarts of jupyter it is working
I did export PATH=$PATH:~/go/bin ,but I can't success.please help me
Hi @zhangleivip, did you receive an error message? It would help to understand the problem you describe. Since you are at it, it would also help knowing which operating system you are using.
OK after a couple of restarts of jupyter it is working
I did export PATH=$PATH:~/go/bin ,but I can't success.please help me
I had a similar issue, but I found out the underlying reason was the terminal session I was running jupyter in didn't update the $PATH env variable to be able to run gophernotes from the command line, i.e. $ gophernotes
. I could run it from another ssh session, but I was running jupyter in a screen and closing that out and creating a new screen solved my issue.
Before I realized this, my fix was to look at where gophernotes ran from, and update the kernel.json.
$ whereis gophernotes
gophernotes: /home/jupyter/go/bin/gophernotes
$ jupyter kernelspec list
Available kernels:
gophernotes /home/jupyter/.local/share/jupyter/kernels/gophernotes
python2 /home/jupyter/.local/share/jupyter/kernels/python2
python3 /home/jupyter/.local/share/jupyter/kernels/python3
$ sudo nano /home/jupyter/.local/share/jupyter/kernels/gophernotes/kernel.json
{
"argv": [
"/home/jupyter/go/bin/gophernotes",
"{connection_file}"
],
"display_name": "Go",
"language": "go",
"name": "go"
}
It looks like the kernel is looking for the gophernotes in the wrong location, or the path variable is messed up. By calling the absolute path for it, it should solve any environment variable issues.
Mac OS 10.14.3, I have followed the setup instructions in the readme, on starting the kernel I get the following:
I did have to manually
export PATH=$PATH:~/go/bin
, not sure if that is related.In my
kernel.json
I have:I see the Troubleshooting instructions but am not sure where I should be adding the full path to the gophernotes executable