Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button with HTML as description #3204

Closed
ssfd7 opened this issue May 13, 2021 · 3 comments
Closed

Button with HTML as description #3204

ssfd7 opened this issue May 13, 2021 · 3 comments
Labels
Custom Widget Issues related to using ipywidgets as a framework for custom widgets
Milestone

Comments

@ssfd7
Copy link

ssfd7 commented May 13, 2021

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

@ssfd7 ssfd7 added the Custom Widget Issues related to using ipywidgets as a framework for custom widgets label May 13, 2021
@afonit
Copy link

afonit commented Jun 3, 2021

This is not a solution (as you requested HTML) - but wanted to give you a quick workaround since all you want are bolded words,
The description accepts unicode - so you could use a site like this to type some test in and put it in the description.

For example I typed here is some then from the site I copied the bold for bold text, here is a screenshot of the result:
image

@jasongrout
Copy link
Member

I think using html in buttons may become possible with #2785 in the forthcoming ipywidgets 8.0.

@jasongrout jasongrout added this to the Reference milestone Jun 4, 2021
@ssfd7
Copy link
Author

ssfd7 commented Jun 4, 2021

Thank you Jason - I will wait for 8.0 - and hope it is done right. A necessary feature nowadays...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Custom Widget Issues related to using ipywidgets as a framework for custom widgets
Projects
None yet
Development

No branches or pull requests

3 participants