Branch from setup on Kino guide (#678)

This commit is contained in:
José Valim 2021-11-05 08:14:29 +01:00 committed by GitHub
parent 982a345ddc
commit 49a406b579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,8 @@ Mix.install([
alias VegaLite, as: Vl alias VegaLite, as: Vl
``` ```
<!-- livebook:{"branch_parent_index":0} -->
## Kino.VegaLite ## Kino.VegaLite
In the [Plotting with VegaLite](/explore/notebooks/intro-to-vega-lite) notebook we show In the [Plotting with VegaLite](/explore/notebooks/intro-to-vega-lite) notebook we show
@ -84,6 +86,8 @@ Kino.VegaLite.periodically(widget, 25, 0, fn i ->
end) end)
``` ```
<!-- livebook:{"branch_parent_index":0} -->
## Kino.ETS ## Kino.ETS
You can use `Kino.ETS.new/1` to render ETS tables and easily You can use `Kino.ETS.new/1` to render ETS tables and easily
@ -112,6 +116,8 @@ end
Having the rows inserted, click on the "Refetch" icon in the table output Having the rows inserted, click on the "Refetch" icon in the table output
above to see them. above to see them.
<!-- livebook:{"branch_parent_index":0} -->
## Kino.DataTable ## Kino.DataTable
When it comes to tables, we are not limited to ETS! You can render When it comes to tables, we are not limited to ETS! You can render
@ -149,6 +155,8 @@ Kino.DataTable.new(
We can sort by the number of reductions to identify the We can sort by the number of reductions to identify the
most busy processes! most busy processes!
<!-- livebook:{"branch_parent_index":0} -->
## Kino.Markdown ## Kino.Markdown
Sometimes you may want to render arbitrary content as rich-text, Sometimes you may want to render arbitrary content as rich-text,
@ -176,6 +184,8 @@ A regular Markdown file.
|> Kino.Markdown.new() |> Kino.Markdown.new()
```` ````
<!-- livebook:{"branch_parent_index":0} -->
## Kino.render/1 ## Kino.render/1
As we saw, Livebook automatically recognises widgets returned As we saw, Livebook automatically recognises widgets returned