diff --git a/lib/livebook/notebook/explore/kino/vm_introspection.livemd b/lib/livebook/notebook/explore/kino/vm_introspection.livemd index eab703877..f83b6630b 100644 --- a/lib/livebook/notebook/explore/kino/vm_introspection.livemd +++ b/lib/livebook/notebook/explore/kino/vm_introspection.livemd @@ -5,8 +5,6 @@ Mix.install([ {:kino, github: "livebook-dev/kino", override: true}, {:kino_vega_lite, "~> 0.1.1"} ]) - -alias VegaLite, as: Vl ``` ## Introduction @@ -17,12 +15,7 @@ time. If you are not familiar with VegaLite, [read its introductory notebook](/explore/notebooks/intro-to-vega-lite). Both `Kino` and `VegaLite` have been listed as dependencies in the -setup cell. Let's also define a convenience shortcut for the -`VegaLite` module, which we will use later: - -```elixir -alias VegaLite, as: Vl -``` +setup cell. ## Processes all the way down @@ -288,6 +281,8 @@ Having all that data, we can now visualize it on a scatter plot using VegaLite: ```elixir +alias VegaLite, as: Vl + Vl.new(width: 600, height: 400) |> Vl.data_from_values(processes) |> Vl.mark(:point, tooltip: true) diff --git a/lib/livebook_web/live/layout_helpers.ex b/lib/livebook_web/live/layout_helpers.ex index 8210b30e0..f6631978d 100644 --- a/lib/livebook_web/live/layout_helpers.ex +++ b/lib/livebook_web/live/layout_helpers.ex @@ -186,7 +186,7 @@ defmodule LivebookWeb.LayoutHelpers do ~H""" <%= if Livebook.Config.feature_flag_enabled?(:hub) do %>
-
+
HUBS