Powered by AppSignal & Oban Pro

LiveSlide

notebooks/liveslide.livemd

LiveSlide

Installation

You can install LiveSlide as a dependency in your project.

I’m personally prone to using the github url so that I don’t have to manually update for changes.

# Mix.install([{:live_slide, github: "brooklinjazz/live_slide"}])
Mix.install([{:live_slide, path: ""}])

However you can also use hex versions.

Mix.install([{:live_slide, "~> 0. 1"}])

Sequences

LiveSlide accepts a list, and creates a numbered button for each value in the list.

LiveSlide.new(["a", "b", "c", "d", "e"])

Markdown

You can return Markdown with the Kino.Markdown library.

LiveSlide.new([Kino.Markdown.new("## header 2")])

Meaning you can display Elixir cells.

elixir_cell = Kino.Markdown.new("
```elixir
1 + 1
```
")
LiveSlide.new([elixir_cell])