Powered by AppSignal & Oban Pro

Local Dependency Notebook

livebooks/local_dep.livemd

Local Dependency Notebook

This notebook demonstrates the local dependency patching feature.

Setup

When run with --mode remote, this notebook uses the published Hex package:

Mix.install([
  {:jason, "~> 1.4"}
])

When run with --mode local and configured local_deps, the version specifier is rewritten to a local path.

Use Dependency

json = Jason.encode!(%{hello: "from local dep notebook"})
IO.puts(json)