Re:Elixir Livebook is a secret weapon for documentation
by goeiedaggoeie on Monday August 07, 2023 @11:04AM
(#37035466)
thanks for the detailed answer of the differences. The interactive (I assume using CRDT's) is a good feature, jupyter server does not have this and is at a time a bit of a hassle.
Also deploying it directly as an app is pretty sweet.
Re:Elixir Livebook is a secret weapon for documentation
by Becher19 on Monday August 07, 2023 @11:20AM
(#37035690)
Livebook actually uses state reducers as described here[1].
Except for cell content. There it uses Operational Transformation.
The source code[2] is really instructional and easy to understand. I highly recommend to look into it :)
[1] https://github.com/jonatanklosko/notebooks/blob/main/article... [2] https://github.com/livebook-dev/livebook/blob/main/lib/liveb...
Re:Elixir Livebook is a secret weapon for documentation
by goeiedaggoeie on Monday August 07, 2023 @12:14PM
(#37036441)
A great read, thanks so much!
- it’s collaborative (think Google docs for code) when several people are working on the same instance of a livebook;
- it’s easy to extend with so-called smart cells (which are essentially pieces of gui you can inject in your document https://news.livebook.dev/v0.6-automate-and-learn-with-smart... ). Smart cells are available for various tasks (db connection/ interaction, data frame exploration, ML tasks, maps), and building your own is relatively easy;
- you can turn a notebook into a web app ( https://news.livebook.dev/deploy-notebooks-as-apps-quality-o... )
- you can run your code an a remote elixir node by attaching to it (although this requires some knowledge of distributed elixir/erlang )