Jupyter notebook To install the Go kernel pits

Source: Internet
Author: User
Tags jupyter jupyter notebook

Recently learning go, want to knock down go in Jupyter notebook, so Google, there are tutorials,
Https://github.com/gopherdata ...
Start moving bricks ....

$ 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

The installation is still simple, but there are still some pits.

1.go install and add the Gopath/bin directory to path.
2.jupyter notebook Follow the tutorial to install.
3.zernmQ go to the official website to install Http://zeromq.org/intro:get-the-software
4.pkg-config General Linux comes with, my machine is not installed

Keng:
After you install it, run the following pkg-config--cflags LIBZMQ if you have the following error

Find the file with the command find/-maxdepth 6-name libzmq.pc
In the file directory to write ~/.bash_profile, I have the following

Then the source ~/.bash_profile takes effect, and the Pkg-config--cflags Libzmq succeeds.

Run Gophernotes will appear error while loading shared libraries:libzmq.so.5 errors, ignorant, do not understand, online find the answer, Https://www.cnblogs.com/codin ... Refer to this post.
1. First find the location of libzmq.so.5 with the Find command, the default installation should be under/usr/local/bin
Write the/etc/ld.so.conf file, run/sbin/ldconfig-v I understand the meaning of refreshing the cache

OK, then run the gophernotes on the OK.
Finally, start Jupyter notebook.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.