Sorry, new to ipywidgets and can’t find out how to insert bold/italic/equations the tooltips. Also would be nice to add images, links, in the tooltips.
Thanks,
Jon (aka Rick).
Hello @JonVoight ,
I went ahead and tried (using IPython.display Markdown) and it looks like the tooltip only expects a unicode string:
TraitError: The 'tooltip' trait of a Button instance expected a unicode string, not the Markdown <IPython.core.display.Markdown object>.
You can find an ongoing discussion that is tangentially related to this at the link below:
opened 11:33AM - 08 Dec 17 UTC
I think that ipywidget is great, therefore I venture with a suggestion.
Present… ly a long widget description with not enough space to display produces dots, and a balloon when hovering over the text. The balloon is nice, the dots not so much.
In largish data analysis GUIs, very short help (i.e. a slightly longer description) would nicely fit, in my opinion, in a separate trait, that behaves like the balloon: the description is shown statically, the balloon is shown when hovering over the former.
Or in two separate parameters of the description, short and [long], the latter behaving like a balloon.
I hope you may consider it as a future feature, if others agree with the purpose.
Thank you so much
Roberto
P.S the same applies to other widget/trait pairs that have the same functionality, e.g. ToggleButton/value
And a recent request that directly pertains to your post:
opened 01:44PM - 13 May 21 UTC
Custom Widget
Currently Button is taking only string text as description.
Use case:
- I … need a button's description to have certain words in bold. Example: "Create **Control** Processes and **Implementation**"
When can this be implemented?
Thanks you,
Radu
Right - the tooltip uses the standard browser tooltips, which only support text.