defmodule LivebookWeb.AppsLive do use LivebookWeb, :live_view @impl true def mount(_params, _session, socket) do if connected?(socket) do Livebook.Apps.subscribe() end apps = Livebook.Apps.list_apps() empty_apps_path? = Livebook.Apps.empty_apps_path?() {:ok, assign(socket, apps: apps, empty_apps_path?: empty_apps_path?)} end @impl true def render(assigns) do ~H"""