Example
Mix.install([{:kino, "~> 0.6.2"}, {:visual, path: "."}])
Installation
Visual depends on the Kino project.
Use Mix.install/2 to install Visual and Kino in the setup section of your livebook.
Mix.install([{:kino, "~> 0.6.2"}, {:visual, github: "BrooklinJazz/visual"}])
Usage
Double click the title to edit the visual.
Change false to true and re-evaluate the cell to see the lightbulb turn on.
power = false
content = if power, do: "/images/on.png", else: "/images/off.png"
Kino.Image.new(File.read!(__DIR__ <> content), :png)