4 ms·
While Livebook will mostly have an appeal for people already working with erlang/elixir, it does have a few features that are pretty nice. - it’s collaborative
by krstf13 3y ago
While Livebook will mostly have an appeal for people already working with erlang/elixir, it does have a few features that are pretty nice.
- 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-cells-mxJJe 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-of-life-upgrades---launch-week-1---day-1-2OTEWI 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 )
- goeiedaggoeie 3y agothanks 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.
- Becher19 3y agoLivebook 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/articles/state_sync_and_reducers.livemd https://github.com/jonatanklosko/notebooks/blob/main/article... [2] https://github.com/livebook-dev/livebook/blob/main/lib/livebook/session/data.ex https://github.com/livebook-dev/livebook/blob/main/lib/liveb...
- goeiedaggoeie 3y agoA great read, thanks so much!