Powered by AppSignal & Oban Pro

First Notebook

getting_started.livemd

First Notebook

Getting started with Livebook

This is my first notebook using Livebook. I'm very excited to try it.

It seems to be a very powerful tool and I have a lot of ideas to develop with.

As the first step, let's greet the world as usual:

IO.puts("Hello, world from Livebook")
Hello, world from Livebook
:ok

Cool! It works.

Let's get our hands dirty

Let's install Kino. This can be easily achieved inside the Livebook itself by running:

Mix.install([
  {:kino, "~> 0.5.2"}
])
:ok

Now let's render a DataTable:

data = [
  %{id: 1, name: "Elixir", website: "https://elixir-lang.org"},
  %{id: 2, name: "Erlang", website: "https://www.erlang.org"}
]

Kino.DataTable.new(data)

Graphics and Math

Now let's discover how the integration with mermaid.js works:

gitGraph:
options
{
    "nodeSpacing": 150,
    "nodeRadius": 10
}
end
commit
branch newbranch
checkout newbranch
commit
commit
checkout master
commit
commit
merge newbranch

Coool!

And now the integration with KaTex:

$$

\sqrt(x) = y;

\ y^2 = x

\ y = \frac{x}{y} $$

It rocks!