Exploring Art with TypeScript, Jupyter, Polars, and Observable Plot
Deno's built-in Jupyter kernel brings TypeScript to notebook-based data analysis, demonstrated by exploring the National Gallery of Art's 130,000-work Open Access dataset. CSVs are loaded with jsr:@std/csv and nodejs-polars, the relational tables are joined into one DataFrame, and a public-domain flag is derived from IDs pulled via a reverse-engineered NGA search endpoint. Observable Plot renders the charts through a custom document shim from jupyter-helper. Later sections add anywidget DataFrame viewers and a custom gallery component for interactive drill-down. Key practical points are that Polars' columnar, chainable API replaces hand-written row loops, and that inline npm/jsr imports keep notebooks reproducible.
Related posts
- Build your own Web Analytics Dashboard with Turso and Bolt
Turso mediumAdeptBolt can generate a Next.js 14 web analytics dashboard backed by a Turso database when you feed it the database schema and a detailed requirements prompt. The walkthrough covers dumping the schema with the Turso CLI, then writing a prompt that specifies libsql-stateless-easy, shadcn/ui, server-side rendering and date-range filtering, and finally wiring up the database URL and auth token in .env. Follow-up prompts refine the output, for example adding country flags and device styling. When Bolt can't fix an error itself, the suggested remedy is to give it more context, such as the framework's latest documentation.
- Interactively explore your Huggingface dataset with one line of code
Hugging Face mediumAdeptRenumics Spotlight builds interactive visualizations directly on top of Hugging Face datasets, inferring data types and label mappings so a single spotlight.show(ds) call opens an inspection UI. Tabular columns are loaded into memory for client-side analytics while images, audio and video load lazily. Enriching a dataset with model predictions and embeddings, computed with a ViT model via transformers and ds.map, enables similarity maps and confusion-matrix layouts for finding failure clusters. Layouts can be defined through the Python API or hosted by duplicating a Hugging Face Space.
- Deno 1.37: Modern JavaScript in Jupyter Notebooks
Deno mediumAdeptDeno 1.37 adds a built-in Jupyter kernel via `deno jupyter --unstable`, letting notebooks run modern JavaScript and TypeScript with access to Deno APIs, npm modules such as D3, rich output through `Symbol.for("Jupyter.display")`, and live Deno KV data. The release also improves the VS Code extension and language server, with auto-enable on `deno.json`, `deno.disablePaths`, import updates on file rename, npm specifier and version completions, and cacheOnSave. The test runner gets faster sanitizers that cut per-test overhead from 3ms to under 0.1ms, for up to 14,000 tests per second, plus a TAP reporter and `Deno.test.only`/`ignore` shorthands. Other changes include Node API compatibility fixes, vendoring as a cache override, and support for import attributes syntax.
- Instrumenting your NextJS application with OpenTelemetry and ClickStack
ClickHouse mediumAdept
ClickPy, a Next.js app over ClickHouse serving 1.8 trillion rows of PyPI download data, is instrumented with OpenTelemetry via ClickStack (ClickHouse, HyperDX and an OTel collector) to capture browser sessions and distributed traces. The HyperDX browser SDK adds session replay, console and network capture, and traceparent propagation that links frontend spans to server spans. The Node.js SDK is wired in through Next.js instrumentation.js with header-capture environment variables. Custom spans around a central query function record each ClickHouse query's timing, rows returned, settings and the dashboard component that issued it, so slow dashboard loads can be traced to specific queries and package properties.
- Building A User-Facing Dashboard With ClickHouse and Luzmo
ClickHouse mediumAdept
A user-facing analytics dashboard for a property management app can be built by pairing ClickHouse as the columnar analytical store with Luzmo for embedded visualizations, using the UK house price dataset from the ClickHouse Playground. The walkthrough covers connecting ClickHouse to Luzmo, adding derived columns, filters, drill-downs and measure pickers, then embedding the dashboard. Row-level access is enforced by defining a County parameter filter on the dataset and generating a server-side embed token via the Luzmo Node.js SDK with per-user parameter_overrides. The token is then passed to a luzmo-dashboard web component on the frontend.