Interactive Iframe issues in Databricks
See original GitHub issueDatabricks is a popular Python Notebook IDE (geared towards Spark) that one of our clients uses. In creating a training for them, I discovered Databricks has specific/peculiar ways of showing notebook cell outputs, both images from matplotlib and interactive iframes. See:
https://docs.databricks.com/user-guide/visualizations/index.html https://docs.databricks.com/user-guide/visualizations/index.html#displayhtml-function https://docs.databricks.com/user-guide/visualizations/html-d3-and-svg.html https://forums.databricks.com/topics/displayhtml.html
With some hacking, I am able to get proper expected image and iframe outputs from CARTOframes 0.10.1 in Databricks. But applying the same hacks does not yield the same success in CARTOframes 1.0b1. It seems the iframe Javascript code in 1.0b1 has additional complexity including some base64 encoding libraries that run afoul of whatever security/embedding procedures Databricks does and throw a few nonsensical Unexpected identifier
JS errors.
Attached is a zip of 2 notebooks - one using cartoframes 0.10.1 and using the specific displayHTML function to get its iframes to show up, and the other using 1.0b1 and the same operations failing.
Databricks has a free-to-use Community edition that is more than sufficient for testing CARTOframes and debugging this, just sign up at: https://databricks.com/try-databricks
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Hey @jatorre, we have done some tests and the visualization piece is working! I’ll close this issue and we will open new ones if we find other issues.
I tried cartoframes 1.0 with their community version. I can help you if you want 😃