From ed8fac44ef2133f8852397fcaf41cea8d1466831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 24 Jul 2021 17:51:20 +0200 Subject: [PATCH] Meantion install caches and consolidates protocols Closes #462. --- lib/livebook/notebook/explore/elixir_and_livebook.livemd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/livebook/notebook/explore/elixir_and_livebook.livemd b/lib/livebook/notebook/explore/elixir_and_livebook.livemd index 75a8e864b..c55ba9812 100644 --- a/lib/livebook/notebook/explore/elixir_and_livebook.livemd +++ b/lib/livebook/notebook/explore/elixir_and_livebook.livemd @@ -84,9 +84,13 @@ Mix.install([ ``` It is a good idea to specify versions of the installed packages, -so that the notebook is easily reproducible later on. +so that the notebook is easily reproducible later on. The install +command goes beyond simply installing dependencies, it also caches +them, consolidates protocols, and more. Check +[its documentation](https://hexdocs.pm/mix/Mix.html#install/2) +to learn more. -Also keep in mind that `Mix.install/2` can be called only once +Finally, keep in mind that `Mix.install/2` can be called only once per runtime, so if you need to modify the dependencies, you should go to the notebook runtime configuration and **reconnect** the current runtime. Let's learn how to do that.