Search code examples
pythonjupyter-notebookvuetify.jsvoila

Is it possible to use fontawesome icons with ipyvuetify?


I created a button in my notebook using the doc :

import ipyvuetify as v

#validate the selected data 
v.Container(children=[
    v.Btn(color='primary', children=[
        v.Icon(left=True, children=[
            'mdi-email-edit-outline'
        ]),
        'Click me'
    ])
])

Now, instead of using the mdi library I'd like to use a fontAwesome icon like :

#validate the selected data 
v.Container(children=[
    v.Btn(color='primary', children=[
        v.Icon(left=True, children=[
            'fab fa-500px'
        ]),
        'Click me'
    ])
])

but the fa lib is unrecognized. is it even possible ?


Solution

  • ipyvuetify doesn't ship with fontawesome icons. Seeing Christoph Weiss-Schabers answer it does seem to work accidentally if fontawesome is loaded on the page either when you use JupyterLab or an extension that uses fontawesome.