From a84e9aca1f9652186a4daf066fb0a0926481f35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 22 Apr 2023 10:17:47 +0200 Subject: [PATCH] Mention more ways to install deps in attached mode --- lib/livebook/notebook/learn/intro_to_livebook.livemd | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/livebook/notebook/learn/intro_to_livebook.livemd b/lib/livebook/notebook/learn/intro_to_livebook.livemd index d0b8eea53..b7b747f4e 100644 --- a/lib/livebook/notebook/learn/intro_to_livebook.livemd +++ b/lib/livebook/notebook/learn/intro_to_livebook.livemd @@ -266,11 +266,16 @@ Click to "Configure" the runtime and choose "Attached node". Input the name and cookie as above and you should be ready to connect to it. Note, however, that you can't install new dependencies on a connected runtime. -If you want to install dependencies, you have two options: +If you want to install dependencies, you have three options: - 1. Use the Mix project approach outlined in the previous section; + 1. Add any Livebook related to dependencies directly to the project + (you may add them to a specific environment, such as `:dev` or + `:livebook`, and then set `MIX_ENV` accordingly when starting your + application) - 2. Use a regular notebook and use + 2. Use the Mix project approach outlined in the previous section; + + 3. Use a regular notebook and use [`Node.connect/1`](https://hexdocs.pm/elixir/Node.html#connect/1) to connect to your application. Use [the `:erpc` module](https://www.erlang.org/doc/man/erpc.html)