mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-18 22:21:32 +08:00
Bump Kino in explore notebooks (#755)
This commit is contained in:
parent
d40a884f31
commit
be3225fe3a
6 changed files with 9 additions and 9 deletions
|
|
@ -200,7 +200,7 @@ install the [Kino](https://github.com/livebook-dev/kino) library:
|
|||
|
||||
```elixir
|
||||
Mix.install([
|
||||
{:kino, "~> 0.4.0"}
|
||||
{:kino, "~> 0.4.1"}
|
||||
])
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ instance, otherwise the command below will fail.
|
|||
|
||||
```elixir
|
||||
Mix.install([
|
||||
{:kino, "~> 0.4.0"}
|
||||
{:kino, "~> 0.4.1"}
|
||||
])
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ and interact with them.
|
|||
|
||||
```elixir
|
||||
Mix.install([
|
||||
{:kino, "~> 0.4.0"},
|
||||
{:kino, "~> 0.4.1"},
|
||||
{:vega_lite, "~> 0.1.2"}
|
||||
])
|
||||
```
|
||||
|
|
@ -74,7 +74,7 @@ widget =
|
|||
|> Vl.encode_field(:x, "x", type: :quantitative)
|
||||
|> Vl.encode_field(:y, "y", type: :quantitative)
|
||||
|> Kino.VegaLite.new()
|
||||
|> tap(&Kino.render/1)
|
||||
|> Kino.render()
|
||||
|
||||
# Add a callback to run every 25ms
|
||||
Kino.VegaLite.periodically(widget, 25, 0, fn i ->
|
||||
|
|
@ -226,7 +226,7 @@ widget =
|
|||
|> Vl.encode_field(:x, "x", type: :quantitative)
|
||||
|> Vl.encode_field(:y, "y", type: :quantitative)
|
||||
|> Kino.VegaLite.new()
|
||||
|> tap(&Kino.render/1)
|
||||
|> Kino.render()
|
||||
|
||||
for i <- 1..300 do
|
||||
point = %{x: i / 10, y: :math.sin(i / 10)}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ directly, but it is required to render VegaLite:
|
|||
```elixir
|
||||
Mix.install([
|
||||
{:vega_lite, "~> 0.1.2"},
|
||||
{:kino, "~> 0.4.0"}
|
||||
{:kino, "~> 0.4.1"}
|
||||
])
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ the visualization and interactions.
|
|||
|
||||
```elixir
|
||||
Mix.install([
|
||||
{:kino, "~> 0.4.0"}
|
||||
{:kino, "~> 0.4.1"}
|
||||
])
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ so let's add `:vega_lite` and `:kino` for that.
|
|||
```elixir
|
||||
Mix.install([
|
||||
{:vega_lite, "~> 0.1.2"},
|
||||
{:kino, "~> 0.4.0"}
|
||||
{:kino, "~> 0.4.1"}
|
||||
])
|
||||
```
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ widget =
|
|||
|> Vl.encode(:color, datum: [repeat: :layer], type: :nominal)
|
||||
)
|
||||
|> Kino.VegaLite.new()
|
||||
|> tap(&Kino.render/1)
|
||||
|> Kino.render()
|
||||
|
||||
Kino.VegaLite.periodically(widget, 200, 1, fn i ->
|
||||
point =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue