livebook-dev / kino

Client-driven interactive widgets for Livebook
Apache License 2.0
372 stars 65 forks source link

Application.ensure_all_started(:kino) required in Attached mode? #201

Closed kipcole9 closed 2 years ago

kipcole9 commented 2 years ago

Vix has added support for the Kino.Render protocol which is working well.

But I notice that when running in attached mode with Kino 0.7 (since there is no longer a mix standalone mode) that rendering will fail unless Application.ensure_all_started :kino is added to the notebook or :kino is added to :extra_applications in mix.exs.

If this is expected behaviour then I'll send a documentation PR.

josevalim commented 2 years ago

Yes, you either need to start Kino in the notebook or have it started. But there is a replacement for Mix standalone that is not attached mode, which are the new options in Mix.install. Check the Elixir and Livebook notebook. :)