mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-11 01:18:12 +08:00
Branch from setup on Kino guide (#678)
This commit is contained in:
parent
982a345ddc
commit
49a406b579
1 changed files with 10 additions and 0 deletions
|
@ -19,6 +19,8 @@ Mix.install([
|
|||
alias VegaLite, as: Vl
|
||||
```
|
||||
|
||||
<!-- livebook:{"branch_parent_index":0} -->
|
||||
|
||||
## Kino.VegaLite
|
||||
|
||||
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)
|
||||
```
|
||||
|
||||
<!-- livebook:{"branch_parent_index":0} -->
|
||||
|
||||
## Kino.ETS
|
||||
|
||||
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
|
||||
above to see them.
|
||||
|
||||
<!-- livebook:{"branch_parent_index":0} -->
|
||||
|
||||
## Kino.DataTable
|
||||
|
||||
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
|
||||
most busy processes!
|
||||
|
||||
<!-- livebook:{"branch_parent_index":0} -->
|
||||
|
||||
## Kino.Markdown
|
||||
|
||||
Sometimes you may want to render arbitrary content as rich-text,
|
||||
|
@ -176,6 +184,8 @@ A regular Markdown file.
|
|||
|> Kino.Markdown.new()
|
||||
````
|
||||
|
||||
<!-- livebook:{"branch_parent_index":0} -->
|
||||
|
||||
## Kino.render/1
|
||||
|
||||
As we saw, Livebook automatically recognises widgets returned
|
||||
|
|
Loading…
Reference in a new issue