mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 13:38:09 +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, github: "livebook-dev/kino", override: true},
|
||||||
{:kino_vega_lite, "~> 0.1.1"}
|
{:kino_vega_lite, "~> 0.1.1"}
|
||||||
])
|
])
|
||||||
|
|
||||||
alias VegaLite, as: Vl
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
@ -17,12 +15,7 @@ time. If you are not familiar with VegaLite, [read
|
||||||
its introductory notebook](/explore/notebooks/intro-to-vega-lite).
|
its introductory notebook](/explore/notebooks/intro-to-vega-lite).
|
||||||
|
|
||||||
Both `Kino` and `VegaLite` have been listed as dependencies in the
|
Both `Kino` and `VegaLite` have been listed as dependencies in the
|
||||||
setup cell. Let's also define a convenience shortcut for the
|
setup cell.
|
||||||
`VegaLite` module, which we will use later:
|
|
||||||
|
|
||||||
```elixir
|
|
||||||
alias VegaLite, as: Vl
|
|
||||||
```
|
|
||||||
|
|
||||||
## Processes all the way down
|
## Processes all the way down
|
||||||
|
|
||||||
|
@ -288,6 +281,8 @@ Having all that data, we can now visualize it on a scatter plot
|
||||||
using VegaLite:
|
using VegaLite:
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
|
alias VegaLite, as: Vl
|
||||||
|
|
||||||
Vl.new(width: 600, height: 400)
|
Vl.new(width: 600, height: 400)
|
||||||
|> Vl.data_from_values(processes)
|
|> Vl.data_from_values(processes)
|
||||||
|> Vl.mark(:point, tooltip: true)
|
|> Vl.mark(:point, tooltip: true)
|
||||||
|
|
|
@ -186,7 +186,7 @@ defmodule LivebookWeb.LayoutHelpers do
|
||||||
~H"""
|
~H"""
|
||||||
<%= if Livebook.Config.feature_flag_enabled?(:hub) do %>
|
<%= if Livebook.Config.feature_flag_enabled?(:hub) do %>
|
||||||
<div id="hubs" class="flex flex-col mt-12">
|
<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">
|
<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>
|
<small class="ml-5 font-medium text-gray-300 cursor-default">HUBS</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue