Skip to content

Instantly share code, notes, and snippets.

View hugobarauna's full-sized avatar

Hugo Baraúna hugobarauna

View GitHub Profile
@hugobarauna
hugobarauna / nx_tensor_as_latex_table.livemd
Last active April 22, 2024 17:36
A custom Kino to visualize a 2-dimensional Nx tensor as a matrix inside Livebook

Custom Kino to visualize a 2-dimensional Nx tensor as a matrix

Mix.install(
  [
    {:nx, "~> 0.7.1"},
    {:kino, "~> 0.12.3"}
  ],
  consolidate_protocols: false
)
@hugobarauna
hugobarauna / kino_json_input_poc.livemd
Last active April 9, 2024 15:06
Kino JSON input with syntax highlight

Kino JSON Input Proof of Concept

Mix.install([
  {:kino, "~> 0.12.3"},
  {:jason, "~> 1.4"}
])
@hugobarauna
hugobarauna / genserver_state_inspector.livemd
Last active March 25, 2024 16:59
GenServer state inspector with Livebook

GenServer state inspector

Mix.install([
  {:kino, "~> 0.12.3"}
])

Section

@hugobarauna
hugobarauna / kino_benchee_example.livemd
Created February 15, 2024 18:04
Benchmark example using (future) kino_benchee

Benchmark using (future) kino_benchee

Mix.install(
  [
    {:explorer, "~> 0.8.0"},
    # {:kino_benchee, github: "livebook-dev/kino_benchee"},
    {:kino, "~> 0.12.3"},
    {:benchee, "~> 1.3"},
    {:kino_vega_lite, "~> 0.1.11"}
@hugobarauna
hugobarauna / kino_spinner.livemd
Created February 1, 2024 14:14
Livebook Kino Spinner component

Kino Spinner component

Mix.install([
  {:kino, "~> 0.12.3"}
])

Section

@hugobarauna
hugobarauna / dets_to_ets_init.livemd
Last active January 24, 2024 18:47
Hydrate ETS from DETS using an init GenServer - Livebook Notebook - free sample from Elixir Patterns book

Hydrate ETS from DETS using an init GenServer

Mix.install([
  {:kino, "~> 0.6.2"},
  {:telemetry, "~> 1.2.1"}
])

This is a free sample from the Elixir Patterns book

@hugobarauna
hugobarauna / example_teaching.livemd
Created October 11, 2023 17:30
Example of how to use a Livebook notebook for teaching purposes

Example of using a Livebook notebook for teaching

Mix.install([
  {:hidden_cell, github: "brooklinjazz/hidden_cell"}
])

How to use this notebook

@hugobarauna
hugobarauna / euro-exchange.livemd
Created August 10, 2023 13:45 — forked from rodrigues/euro-exchange.livemd
💶 Euro Exchange Rates History 📈

💶 Euro Exchange Rates History

Run in Livebook

Mix.install([
  {:briefly, "~> 0.4.1"},
  {:req, "~> 0.3.10"},
@hugobarauna
hugobarauna / membrane_dashboard.livemd
Created August 9, 2023 15:04
Membrane Dashboard using KinoMembrane and Livebook

Membrane pipeline dashboard

Logger.configure(level: :info)

Mix.install([
  :kino_membrane,
  :membrane_hackney_plugin,
@hugobarauna
hugobarauna / supervisor_lifecycle.livemd
Created December 20, 2022 18:32
Lifecycle of Supervisors and Processes - Livebook Notebook - free sample from Elixir Patterns book

Lifecycle of Supervisors and Processes

Mix.install([
  {:kino, "~> 0.6.2"}
])

This is a free sample from the Elixir Patterns book