defmodule LivebookWeb.SessionLive.PackageSearchLive do use LivebookWeb, :live_view @impl true def mount( _params, %{"session" => session, "runtime" => runtime, "return_to" => return_to}, socket ) do socket = assign(socket, session: session, runtime: runtime, return_to: return_to, search: "", search_ref: nil, packages: [], error_message: nil ) socket = if connected?(socket), do: do_search(socket, ""), else: socket {:ok, socket} end @impl true def render(assigns) do ~H"""
Find external packages for your notebook