Rendering is broken inside Databricks with DBR 11.x and higher - potential fix included
See original GitHub issueHello,
lets-plot used to work on Databricks with DBR 10.x (cluster version) and lower and we have customers who love and use it.
However, with DBR 11.x the auto-renderer breaks because it detects the wrong display type.
To fix this, customers have to explicitly do LetsPlot.setup_html(isolated_frame=True)
because isolated_frame
is auto-detected to be False. IMO most likely as part of _detect_isolated_frame
.
Databricks can be detected e.g. via "databricks" in str(os.environ)
which might be added to https://github1s.com/JetBrains/lets-plot/blob/HEAD/python-package/lets_plot/frontend_context/_html_contexts.py#L68-L69 or similar.
What do you think?
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
Databricks runtime maintenance updates
Fixed an issue where running MERGE and using exactly 99 columns from the source in the condition could result in java.lang.ClassCastException: org.apache.spark.
Read more >Databricks runtime maintenance updates - Azure
Fixed a bug with JSON parsing in Auto Loader when all columns were left as strings ( cloudFiles.inferColumnTypes was not set or set...
Read more >1.1.7 (core) / 0.17.7 (libraries) - Dagster Docs
[dagstermill] Jupyter notebooks now correctly render in Dagit on Windows ... [dagster-databricks] Environment variables used by dagster cloud are now ...
Read more >Package List — Spack 0.20.0.dev0 documentation
It is automatically generated based on the packages in this Spack version. ... to better interact with the Mac OS X Aqua user...
Read more >Author Archives - SI Bytes – Shaun Ryan - WordPress.com
1st we're gonna create a corrupt file to load. I'm using databricks for convenience. 1. 2. 3. 4.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@fwetdb I’ve pushed your proposal to master : https://github.com/JetBrains/lets-plot/commit/429e19aa541719b562c3f143f1387850cccad2c2
Luckily we are expecting the next release in few days so the fix is coming really soon.
Hi @alshan Thank you for the reach out and the fast release. I verified that the fix worked as intended.