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

Installation Steps

  1. Open the Windows Terminal or Command Prompt application.

  2. Clone the Livebook repository from Github onto your system:

git clone https://github.com/livebook-dev/livebook.git
  1. Change your current directory to the Livebook directory:
cd livebook
  1. Install the Livebook dependencies using mix:
mix deps.get
  1. Create a new secret key for Livebook using the mix command:
mix phx.gen.secret
  1. Copy the output of the mix phx.gen.secret command.

  2. Navigate to the config folder in your Livebook directory:

cd config
  1. Create a new dev.secret.exs file using the nano or vim text editor:
nano dev.secret.exs
# or
vim dev.secret.exs
  1. Paste the output of the mix phx.gen.secret command into the dev.secret.exs file:
use Mix.Config

config :livebook, LivebookWeb.Endpoint,
  secret_key_base: "PASTE_YOUR_SECRET_KEY_HERE"
  1. Save and close the dev.secret.exs file.

  2. Navigate back to the Livebook directory:

cd ..
  1. Start the Livebook server using the mix command:
iex -S mix phx.server
  1. 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.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!