-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get the Leaflet.js example to run in Attached mode. #1131
Comments
Hey @rugyoga, how exactly do you start the node you attach to? It should work if you add |
When I use the Attached runtime, all my other code works fine but the section with Leaflet.js barfs as reported. I click on I start iex by doing: iex --cookie $COOKIE --sname $NAME -S mix |
How do you start the node? The error indicates that the Kino application is not started :) |
Do I need to explicitly start Kino in my application code? |
If you added it as |
I believe so, because all the other components in the supervision tree are responsive. |
Hmm, I don't see why the kino application wouldn't start then. I've just tried that with a fresh Mix project and it works as expected. @josevalim any ideas? |
Can I start the Kino instance explicitly? |
Yeah, doing |
^ That fixed it. I'll review our start up code at the next opportunity. Probably something funky going on there. |
FTR this should work:
|
Thanks for your help! |
Environment
Current behavior
I can run the example in the
Dynamic maps with Leaflet
section with no issue.I can copy and paste that code to a new LiveBook and run it in Elixir standalone mode with no issue.
But when I try and incorporate it into an existing mix project and run it in Attached mode, I get:
I moved the Kino dependency into the mix.exs.
Is there some other incantation I need to perform.
Didn't see anything in the doc.
mix escript.install github livebook-dev/livebook
livebook server
git rev-parse HEAD
if running with mix):The text was updated successfully, but these errors were encountered: