-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to import third-party packages on Windows? #243
Comments
The procedure to import third-party packages on Windows is somewhat tedious, and requires compiling gophernotes twice. Here it is, in its full length:
set GOPATH=%USERPROFILE%\go
mkdir "%GOPATH%\src\github.com\gopherdata"
cd "%GOPATH%\src\github.com\gopherdata"
git clone https://github.com/gopherdata/gophernotes
cd gophernotes
go install . You need to use these exact paths, because that's what gophernotes expects at step 4 below.
mkdir "%APPDATA%\jupyter\kernels\gophernotes"
xcopy "%GOPATH%\src\github.com\gopherdata\gophernotes\kernel" "%APPDATA%\jupyter\kernels\gophernotes" /s then edit the file
jupyter notebook and create a new Go notebook with New > Go
import (
"gonum.org/v1/gonum/mat"
"gonum.org/v1/gonum/floats"
) for each import, you will get a message saying that a file has been created inside Don't quit jupyter notebook yet: first, enter all the Only after you have typed all the
set GOPATH=%USERPROFILE%\go
cd "%GOPATH%\src\github.com\gopherdata\gophernotes"
go install .
Final note: you need to repeat steps 4,5,6 and 7 each time you want to import third-party packages. |
error writing file "C:\Users\smile\go\src\github.com\gopherdata\gophernotes\imports/thirdparty/gonum_org_v1_gonum_mat.go": open C:\Users\smile\go\src\github.com\gopherdata\gophernotes\imports/thirdparty/gonum_org_v1_gonum_mat.go: The system cannot find the path specified.
it is visiable to find the error is come from path, but i do not konw how to solve it.
The text was updated successfully, but these errors were encountered: