Builder

class Builder(val notebook: Notebook)

Constructors

Link copied to clipboard
constructor(notebook: Notebook)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

All integrations transitively loaded by this integration will be tested against passed acceptance rule and won't be loaded if the rule returned false. If there were no acceptance rules that returned not-null values, integration will be loaded. If there are several acceptance rules that returned not-null values, the latest one will be taken into account.

Link copied to clipboard
fun addOption(name: String, value: String)
Link copied to clipboard
fun addOptions(options: Map<String, String>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun dependencies(vararg paths: String)
Link copied to clipboard
inline fun <T> import()
fun import(vararg paths: String)
Link copied to clipboard
inline fun <T> importPackage()
Link copied to clipboard
Link copied to clipboard
inline fun <T : Annotation> onClassAnnotation(noinline callback: ClassDeclarationsCallback)
Link copied to clipboard
inline fun <T : Annotation> onFileAnnotation(noinline callback: FileAnnotationCallback)
Link copied to clipboard
Link copied to clipboard
fun onLoaded(callback: KotlinKernelHost.() -> Unit)
Link copied to clipboard
fun onShutdown(callback: KotlinKernelHost.() -> Unit)
Link copied to clipboard
inline fun <T : Any> onVariable(noinline callback: VariableDeclarationCallback<T>)

Runs callback for every snippet property of compile-time subtype of type T

Link copied to clipboard
inline fun <T : Any> onVariableByRuntimeType(noinline callback: VariableDeclarationCallback<T>)

Same as onVariable, but based on runtime type that is figured out by reflection

Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> render(noinline renderer: CodeCell.(T) -> Any)
Link copied to clipboard
inline fun <E : Throwable> renderThrowable(noinline renderer: (E) -> Any)
Link copied to clipboard
inline fun <T : Any> renderWithHost(noinline renderer: CodeCell.(ExecutionHost, T) -> Any)
Link copied to clipboard
fun repositories(vararg paths: String)
Link copied to clipboard
fun repository(path: String, username: String? = null, password: String? = null)
Link copied to clipboard
fun resource(resource: LibraryResource)
Link copied to clipboard

Build a resource tree using ResourcesBuilder. The builder allows to construct js and css bundles. Each bundle could contain multiple files or urls. Each of those could contain multiple fallback paths (for example if URL not found, local resource is used.

Link copied to clipboard
fun setDescription(description: String)
Link copied to clipboard
fun setWebsite(website: String)
Link copied to clipboard
inline fun <T : Any> updateVariable(noinline callback: VariableUpdateCallback<T>)

Runs callback for every snippet property of compile-time subtype of type T

Link copied to clipboard
inline fun <T : Any> updateVariableByRuntimeType(noinline callback: VariableUpdateCallback<T>)

Same as updateVariable, but based on runtime type that is figured out by reflection