<?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 Re: How can I change the font size on ipywidgets in a Databricks notebook? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-change-the-font-size-on-ipywidgets-in-a-databricks/m-p/19607#M13163</link>
    <description>&lt;P&gt;Hey Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example you're trying to run is for ipywidgets 8, we currently have ipywidgets 7-which has fewer button customizations. I believe the only font customization available in 7 is "font_weigh t" (no space).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 22:17:04 GMT</pubDate>
    <dc:creator>Miguel_Suarez</dc:creator>
    <dc:date>2023-04-10T22:17:04Z</dc:date>
    <item>
      <title>How can I change the font size on ipywidgets in a Databricks notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-change-the-font-size-on-ipywidgets-in-a-databricks/m-p/19606#M13162</link>
      <description>&lt;P&gt;I'm trying to create a simple UI for a notebook using the recently implemented support for ipywidgets, but I'm having a hard time figuring out how to change certain style attributes like font size and color in widgets that &lt;I&gt;should&lt;/I&gt; accept those style parameters according the the ipywidgets documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I run the following code snippet (taken directly from the &lt;A href="https://ipywidgets.readthedocs.io/en/8.0.2/examples/Widget%20Styling.html#The-style-attribute" alt="https://ipywidgets.readthedocs.io/en/8.0.2/examples/Widget%20Styling.html#The-style-attribute" target="_blank"&gt;ipywidget docs&lt;/A&gt;), none of these style parameters seems to have any effect on the widget that is created:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;b3 = widgets.Button(description='Styled button', style=dict(
	    font_style='italic',
	    font_variant="small-caps",
	    text_color='red',
	    text_decoration='underline'
	     ))
display(b3)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Similarly, if I run &lt;B&gt;b3.style.keys &lt;/B&gt;in a new cell after executing the above code, the output doesn't include any of those style parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run into this same issue with a number of different widgets, and it's really inconvenient not to be able to change font sizes on individual widgets even when I scale them. Is this an additional limitation of ipywidgets in Databricks? It's not listed as such on on the &lt;A href="https://docs.databricks.com/notebooks/ipywidgets.html?_ga=2.225886428.774475392.1669650265-1764236451.1661183388" alt="https://docs.databricks.com/notebooks/ipywidgets.html?_ga=2.225886428.774475392.1669650265-1764236451.1661183388" target="_blank"&gt;Databricks website&lt;/A&gt; so I'm wondering if there's a simple answer that I'm missing.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 19:57:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-change-the-font-size-on-ipywidgets-in-a-databricks/m-p/19606#M13162</guid>
      <dc:creator>Michael_Marquis</dc:creator>
      <dc:date>2022-11-30T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the font size on ipywidgets in a Databricks notebook?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-change-the-font-size-on-ipywidgets-in-a-databricks/m-p/19607#M13163</link>
      <description>&lt;P&gt;Hey Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example you're trying to run is for ipywidgets 8, we currently have ipywidgets 7-which has fewer button customizations. I believe the only font customization available in 7 is "font_weigh t" (no space).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 22:17:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-change-the-font-size-on-ipywidgets-in-a-databricks/m-p/19607#M13163</guid>
      <dc:creator>Miguel_Suarez</dc:creator>
      <dc:date>2023-04-10T22:17:04Z</dc:date>
    </item>
  </channel>
</rss>

