<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic leaflet not works in notebook(R language) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/leaflet-not-works-in-notebook-r-language/m-p/5393#M1816</link>
    <description>&lt;P&gt;I saw this notebook:  &lt;A href="https://learn.microsoft.com/zh-cn/azure/databricks/_extras/notebooks/source/azure/htmlwidgets-azure.html" alt="https://learn.microsoft.com/zh-cn/azure/databricks/_extras/notebooks/source/azure/htmlwidgets-azure.html" target="_blank"&gt;htmlwidgets-azure - Databricks (microsoft.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is not reproducible. I got a lot errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;there is no package called ‘R.utils’.  This is easy to fix, just install the package "R.utils"&lt;/LI&gt;&lt;LI&gt;"can not be unloaded".  This is not a way one, I tried to remove htmltools and install again. somehow, it is fixed&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;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
&amp;nbsp;
Error in value[[3L]](cond): Package ‘htmltools’ version 0.5.3 cannot be unloaded:&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;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.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my testing environment:  &lt;/P&gt;&lt;P&gt;runtime: 11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12)&lt;/P&gt;&lt;P&gt;note: standard_F4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Apr 2023 03:43:56 GMT</pubDate>
    <dc:creator>yalei</dc:creator>
    <dc:date>2023-04-23T03:43:56Z</dc:date>
    <item>
      <title>leaflet not works in notebook(R language)</title>
      <link>https://community.databricks.com/t5/data-engineering/leaflet-not-works-in-notebook-r-language/m-p/5393#M1816</link>
      <description>&lt;P&gt;I saw this notebook:  &lt;A href="https://learn.microsoft.com/zh-cn/azure/databricks/_extras/notebooks/source/azure/htmlwidgets-azure.html" alt="https://learn.microsoft.com/zh-cn/azure/databricks/_extras/notebooks/source/azure/htmlwidgets-azure.html" target="_blank"&gt;htmlwidgets-azure - Databricks (microsoft.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it is not reproducible. I got a lot errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;there is no package called ‘R.utils’.  This is easy to fix, just install the package "R.utils"&lt;/LI&gt;&lt;LI&gt;"can not be unloaded".  This is not a way one, I tried to remove htmltools and install again. somehow, it is fixed&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;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
&amp;nbsp;
Error in value[[3L]](cond): Package ‘htmltools’ version 0.5.3 cannot be unloaded:&lt;/CODE&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;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.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my testing environment:  &lt;/P&gt;&lt;P&gt;runtime: 11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12)&lt;/P&gt;&lt;P&gt;note: standard_F4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 03:43:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/leaflet-not-works-in-notebook-r-language/m-p/5393#M1816</guid>
      <dc:creator>yalei</dc:creator>
      <dc:date>2023-04-23T03:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: leaflet not works in notebook(R language)</title>
      <link>https://community.databricks.com/t5/data-engineering/leaflet-not-works-in-notebook-r-language/m-p/78793#M35601</link>
      <description>&lt;P&gt;Hi yalei,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you have any luck fixing this issue? I am also trying to replicate the htmlwidgets notebook and am running into the same error.&lt;/P&gt;&lt;P&gt;Unfortunately, the suggestions provided by Kaniz_Fatma below did not work.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 12:27:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/leaflet-not-works-in-notebook-r-language/m-p/78793#M35601</guid>
      <dc:creator>KAdamatzky</dc:creator>
      <dc:date>2024-07-15T12:27:53Z</dc:date>
    </item>
  </channel>
</rss>

