Using lonboard
in a Databricks notebook
#144
-
Hello, Thanks for sharing I currently use Databricks for my python work. I have tried producing an interactive map with the following: While the execution doesn't fail, the widget/map doesn't display. I've read that people have got round similar issues with folium by exporting to html then displaying. Has anyone got an idea how I could do this with Note: My cluster is a above the minimum runtime version suggested, and I have tried running multiple times. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Per their docs, some custom widgets are supported, but IIRC Databricks doesn't support the full Jupyter Widgets protocol. You can look in your browser console to see if there's any errors, and you might want to try rendering a map with an empty/very small dataset to make sure it's not related to the size of your data. I don't have access to a Databricks instance, and so I don't have a way to test on Databricks. Edit: Actually if I had to guess, the issue is probably with Databricks requiring an older version of JavaScript than what we're using. We're building on top of Anywidget, which makes it 100x easier to build Jupyter Widgets, but compiles to a recent version of JS. We could try transpiling our JS bundle to ES5 but I don't think that would work with anywidget. #8 is tracking export to HTML, but that's a decent chunk of work and I don't have a timeline suggestion. |
Beta Was this translation helpful? Give feedback.
-
Version 0.3 added export to a static HTML file, so that may be compatible with databricks |
Beta Was this translation helpful? Give feedback.
Per their docs, some custom widgets are supported, but IIRC Databricks doesn't support the full Jupyter Widgets protocol. You can look in your browser console to see if there's any errors, and you might want to try rendering a map with an empty/very small dataset to make sure it's not related to the size of your data. I don't have access to a Databricks instance, and so I don't have a way to test on Databricks.
Edit: Actually if I had to guess, the issue is probably with Databricks requiring an older version of JavaScript than what we're using. We're building on top of Anywidget, which makes it 100x easier to build Jupyter Widgets, but compiles to a recent version of JS. We could try tran…