mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-02 17:55:00 +08:00
Fix spacing and remove duplication
This commit is contained in:
parent
8f8f1db5d5
commit
f97706e3fd
2 changed files with 4 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -186,7 +186,7 @@ defmodule LivebookWeb.LayoutHelpers do
|
|||
~H"""
|
||||
<%= if Livebook.Config.feature_flag_enabled?(:hub) do %>
|
||||
<div id="hubs" class="flex flex-col mt-12">
|
||||
<div class="space-y-1">
|
||||
<div class="space-y-3">
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 relative leading-6 mb-2">
|
||||
<small class="ml-5 font-medium text-gray-300 cursor-default">HUBS</small>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue