Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/u2takey/gopyter
https://github.com/u2takey/gopyter
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/u2takey/gopyter
- Owner: u2takey
- License: mit
- Created: 2021-10-18T10:54:08.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-19T02:48:21.000Z (about 3 years ago)
- Last Synced: 2024-10-10T20:07:30.842Z (28 days ago)
- Language: Go
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codemeta: codemeta.json
Awesome Lists containing this project
README
# gopyter
Gopyter provide a template to develop kernels with golang. Now gopyter provide two built-in kernels: starlark-go and lua-go
## Install Starlark-go
```go
go install github.com/u2takey/gopyter@latest
mkdir -p `jupyter --data-dir`/kernels/starlark-go
cp ./kernel/kernel_starlark_go.json `jupyter --data-dir`/kernels/starlark-go/kernel.json
```## Install Lua-go
```go
go install github.com/u2takey/gopyter@latest
mkdir -p `jupyter --data-dir`/kernels/lua-go
cp ./kernel/kernel_lua_go.json `jupyter --data-dir`/kernels/lua-go/kernel.json
```## How to Implement new Kernel
Just implement interface KernelInterface and do RegisterKernel
```go
type KernelInterface interface {
Init() error
Eval(outerr OutErr, code string) (val []interface{}, err error)
Name() string
}
```