-
public interface KotlinKernelHost
Interface representing kernel engine, the core facility for compiling and executing code snippets
-
-
Method Summary
Modifier and Type Method Description abstract Unit
display(Object value)
Try to display the given value. abstract Unit
updateDisplay(Object value, String id)
Updates display data with given id with the new value abstract Unit
scheduleExecution(Function1<KotlinKernelHost, ?> execution)
Schedules execution of the given execution after the completing of execution of the current cell Unit
scheduleExecution(String execution)
abstract FieldValue
execute(String code)
Executes code immediately. abstract Unit
addLibrary(LibraryDefinition library)
Adds a new library via its definition. -
-
Method Detail
-
display
abstract Unit display(Object value)
Try to display the given value. It is only displayed if it's an instance of Renderable or may be converted to it
-
updateDisplay
abstract Unit updateDisplay(Object value, String id)
Updates display data with given id with the new value
-
scheduleExecution
abstract Unit scheduleExecution(Function1<KotlinKernelHost, ?> execution)
Schedules execution of the given execution after the completing of execution of the current cell
-
scheduleExecution
Unit scheduleExecution(String execution)
-
execute
abstract FieldValue execute(String code)
Executes code immediately. Note that it may lead to breaking the kernel state in some cases
-
addLibrary
abstract Unit addLibrary(LibraryDefinition library)
Adds a new library via its definition. Fully interchangeable with
%use
approach
-
-
-
-