gopyter

command module
v0.0.0-...-18d70e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 35 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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 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

type KernelInterface interface {
	Init() error
	Eval(outerr OutErr, code string) (val []interface{}, err error)
	Name() string
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址