I saw this notebook: htmlwidgets-azure - Databricks (microsoft.com)
However, it is not reproducible. I got a lot errors:
- there is no package called โR.utilsโ. This is easy to fix, just install the package "R.utils"
- "can not be unloaded". This is not a way one, I tried to remove htmltools and install again. somehow, it is fixed
Error in value[[3L]](cond) :
Package โhtmltoolsโ version 0.5.3 cannot be unloaded:
Error in unloadNamespace(package) : namespace โhtmltoolsโ is imported by โhtmlwidgetsโ, โshinyโ so cannot be unloaded
Error in value[[3L]](cond): Package โhtmltoolsโ version 0.5.3 cannot be unloaded:
- After fixing all the package errors, the plotly package finally works. However, leaflet and dygraphs print nothing in the notebook. I downloaded the generated html files in /dbfs/FileStore/rwidgets and tested them locally, the map works. It just does not show up in the notebook.
Here is my testing environment:
runtime: 11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12)
note: standard_F4