{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "starting-sentence", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T15:54:26.277354Z", "iopub.status.busy": "2025-12-03T15:54:26.274525Z", "iopub.status.idle": "2025-12-03T15:54:28.256623Z", "shell.execute_reply": "2025-12-03T15:54:28.256350Z" } }, "outputs": [ { "data": { "text/html": [ "
\n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%useLatestDescriptors\n", "%use lets-plot" ] }, { "cell_type": "code", "execution_count": 2, "id": "d68ca408-bd25-4b0a-aa62-3a8ae8ef33e3", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T15:54:28.258842Z", "iopub.status.busy": "2025-12-03T15:54:28.258666Z", "iopub.status.idle": "2025-12-03T15:54:28.304030Z", "shell.execute_reply": "2025-12-03T15:54:28.304160Z" } }, "outputs": [ { "data": { "text/plain": [ "Lets-Plot Kotlin API v.4.12.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.8.1.\n", "Outputs: Web (HTML+JS), Kotlin Notebook (Swing), Static SVG (hidden)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "LetsPlot.getInfo()" ] }, { "cell_type": "code", "execution_count": 3, "id": "precise-rough", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T15:54:28.307002Z", "iopub.status.busy": "2025-12-03T15:54:28.306472Z", "iopub.status.idle": "2025-12-03T15:54:28.592221Z", "shell.execute_reply": "2025-12-03T15:54:28.591955Z" } }, "outputs": [], "source": [ "import kotlin.random.Random\n", "\n", "fun timePlot(\n", " title: String,\n", " entries: Iterable