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

Icons not rendered in ipywidgets #1302

Open
blois opened this issue Jun 1, 2020 · 2 comments
Open

Icons not rendered in ipywidgets #1302

blois opened this issue Jun 1, 2020 · 2 comments

Comments

@blois
Copy link
Contributor

blois commented Jun 1, 2020

From: #60 (comment)

Icons for buttons are not rendered in colab. I'd love to see this supported.

An empty button is showed for the following code:

my_button = widgets.Button(icon="home")
display(my_button)

I believe this is because IPyWidgets reference FontAwesome but do not include it.

Example which does render:

from IPython.display import HTML
my_button = widgets.Button(icon="home")

display(HTML('''<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> '''))
display(my_button)
@ybressler
Copy link

Clever workaround @blois.

@tylere
Copy link

tylere commented Jan 26, 2022

This is also affecting the caret icons used in the Accordion widget.

Repo notebook: https://colab.sandbox.google.com/gist/tylere/4fe5346907af9ac5ffd69f08cc669def/accordian-widget-test.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants