How to Install Livebook on Windows 11
Livebook is an open-source platform for interactive, collaborative notebooks developed by the Erlang Solutions team. Livebook allows users to code in multiple programming languages, with support for real-time collaboration and interactive visualizations.
This tutorial will walk you through the steps of installing Livebook on Windows 11.
Prerequisites
- Windows 11 operating system
- Git installed on your system
- Elixir programming language installed on your system
- Erlang OTP installed on your system
Installation Steps
Open the Windows Terminal or Command Prompt application.
Clone the Livebook repository from Github onto your system:
git clone https://github.com/livebook-dev/livebook.git
- Change your current directory to the Livebook directory:
cd livebook
- Install the Livebook dependencies using
mix:
mix deps.get
- Create a new secret key for Livebook using the
mixcommand:
mix phx.gen.secret
Copy the output of the
mix phx.gen.secretcommand.Navigate to the
configfolder in your Livebook directory:
cd config
- Create a new
dev.secret.exsfile using thenanoorvimtext editor:
nano dev.secret.exs
# or
vim dev.secret.exs
- Paste the output of the
mix phx.gen.secretcommand into thedev.secret.exsfile:
use Mix.Config
config :livebook, LivebookWeb.Endpoint,
secret_key_base: "PASTE_YOUR_SECRET_KEY_HERE"
Save and close the
dev.secret.exsfile.Navigate back to the Livebook directory:
cd ..
- Start the Livebook server using the
mixcommand:
iex -S mix phx.server
- Access Livebook through your web browser at
http://localhost:8080.
Congratulations, you have successfully installed Livebook on your Windows 11 system! You can now start creating interactive notebooks and collaborating in real-time with others.