AstonJ

AstonJ

How would you explain Livebook to a newbie?

How would you explain Livebook to a newbie?

What can it be used for? Who is it aimed at/who might want to use it? What have you used it for?


Please note the aim of threads like this is for you to explain things in your own words. Please see this thread for details :slight_smile: (videos/links to further reading are also welcome though!)

Most Liked

aiwaiwa

aiwaiwa

It’s like iex, but in your web browser.
If you ever accidentally entered a new line in the middle of expression and didn’t know how to stop iex from interrupting itself completely, don’t type #iex:break, use Livebook instead!

  • You can use the same iex short functions - just import IEx.Helpers in the “Notebook dependencies and setup” at the top of your notebook.


    Voila!

  • You can add dependencies and even search for them by typing keywords.

  • Auto-completion actually works even on Windows and OTP < 26 - just wait a few seconds. Help windows popup as you type. Hover over symbols and see what they represent.

  • You organize your interactions using separate notebooks.

    • You can add your notes as you go.
    • The resulting notebook file is a valid Markdown, to share quickly or save for the future.
      • If you forget to save them, they are auto saved. You can restore it right from the Livebook.
  • You can attach to a running iex session if you initiate iex with iex --sname test --cookie mycookie. That includes your Phoenix app (just add -S mix phx.server). Simply tap Processor icon, Disconnect and Configure an attached node.

dimitarvp

dimitarvp

It’s an Elixir LEGO. :smiley:

D4no0

D4no0

Yes definetly, it is like having a REPL on steroids, I think that the biggest potential for livebook is as a learning tool.

Where Next?

Popular in Questions Top

tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 48475 226
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

We're in Beta

About us Mission Statement