Package-level declarations

Types

Link copied to clipboard

A change collector that combines all emitted configuration changes until read, than drops all collected changes and starts new batch.

Link copied to clipboard
class PlotlyServer : Configurable, CoroutineScope
Link copied to clipboard
Link copied to clipboard
class PlotlyServerIntegration : JupyterIntegration
Link copied to clipboard
Link copied to clipboard
sealed class Update

An update message for both data and layout

Properties

Link copied to clipboard

Global plotly jupyter configuration

Functions

Link copied to clipboard
fun ApplicationEngine.close()
Link copied to clipboard
fun Plot.collectUpdates(plotId: String, scope: CoroutineScope, updateInterval: Int): Flow<Update>
Link copied to clipboard
fun PlotlyServer.plot(plotId: String? = null, config: PlotlyConfig = PlotlyConfig(), plotBuilder: Plot.() -> Unit)

A shortcut to make a single plot at the default page

Link copied to clipboard
fun Application.plotlyModule(route: String = DEFAULT_PAGE, block: PlotlyServer.() -> Unit = {}): PlotlyServer

Attach plotly application to given server

Link copied to clipboard

Configure client to request regular updates from server. Pull updates are more expensive than push updates since they contain the full plot data and server can't decide what to send.

Link copied to clipboard

Configure server to start sending updates in push mode. Does not affect loaded pages

Link copied to clipboard
fun Plotly.serve(scope: CoroutineScope = GlobalScope, host: String = "localhost", port: Int = 7777, block: PlotlyServer.() -> Unit): ApplicationEngine

Start static server (updates via reload)

Link copied to clipboard
fun ApplicationEngine.show()