Plotly.Kino.SmartCell (plotly_ex v0.3.0)

Copy Markdown View Source

No-code Plotly chart builder for Livebook. Auto-discovers notebook variables and populates X/Y/Color column dropdowns without typing column names.

Supported chart types

scatter, bar, line, histogram, box, violin, pie, quiver

Multi-layer support

Click + Add layer to overlay additional traces on the same figure. Each layer is an independent Plotly.Express call; layers are combined via Plotly.Figure.merge/2, e.g.:

Plotly.scatter(df, x: "date", y: "value")
|> Plotly.Figure.merge(Plotly.bar(df2, x: "date", y: "count"))
|> Plotly.show()

Data sources

  • Explorer.DataFrame — column names and types are inferred automatically
  • List of string-keyed maps — e.g. [%{"x" => 1, "y" => 2}]
  • Columnar maps — e.g. %{"x" => [1, 2], "y" => [3, 4]}

Generated code pattern

Plotly.scatter(data, x: "col_a", y: "col_b") |> Plotly.show()

Summary

Functions

child_spec(map)