ClusterConnectSmartcell

ClusterConnectSmartcell is a smart cell for Elixir Livebook that allows connecting to a remote node in an Elixir cluster and optionally send a :erpc call.

HowTo

Installation

The package is published in hex and you can use it in your livebook setup section as

Mix.install([
  # ...
  {:cluster_connect_smartcell, "~> 0.0.1"}
  # ...
])

otherwise you can test the bleeding edge directly via github

Mix.install([
  # ...
  {:cluster_connect_smartcell, git: "https://github.com/zoten/cluster_connect_smartcell", ref: "master"}
  # ...
])

Usage

You will need:

Once installed dependencies and added with the + Smart button the smart cell, you should see something like

Screenshot

Fill in the relevant parts and you should be good to go! Please note that:

Why?

Because I was preparing a learning tool for my colleagues and wondered how hard could it be to write a smartcell for it (spoiler: not so hard! 🚀)

When is this useful?

When you want to have the ability to use livebook's goodies (e.g. graphs and charts) but they are not available in the remote node's runtime, and you don't want those runtime dependencies

How?

See Sources to see where the inspiration (and a lot of code) came from. Please note I don't know any Vue at the moment, so be patient. I'm also very bad at styling, among the rest.

Notes

Gotchas

TODO

Contributing

Please note this is still a draft kind of project, that's why it is still < 0.1.x. However, any help is appreciated from the start!

Feel free to reach me via any means or directly file an issue/PR!

Sources

If the use of any of those sources has been deemed inappropriate by the author(s), please feel free to contact me by any means and I'll take proper actions

Any idea on how to make this appropriation more explicit is welcome!