jupyter / nbconvert

Jupyter Notebook Conversion
https://nbconvert.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.75k stars 569 forks source link

Fontawesome icons are not displayed when notebook exported as html in Jupyterlab #1523

Open mvonpapen opened 3 years ago

mvonpapen commented 3 years ago

Description

I use Jupyterlab version 2.2.9 and try to export a noteboopk to html with embedded fontawesome icons. However, the icons do not show in the exported html.

In a markdown cell I use <i class="fa fa-camera"></i>, which displays correctly in Jupyterlab. But when I export the notebook to html using the Jupyterlab menu (File -->Export notebook as --> HTML_embed), the fontawesome icons do not show. Instead I see an empty square.

Interestingly, the export works properly, when I use the CLI jupyter nbconvert --to html notebook.ipynb. However, it only displays icons with the now deprecated style prefix fa and not icons with the current style prefix fas.

Steps to reproduce

Start Jupyterlab 2.2.9, insert <i class="fa fa-camera"></i> into a markdown cell, and export as html.

image

Nbconvert version: nbconvert 6.0.7 py38h578d9bd_3 conda-forge

pyfrid commented 1 year ago

The problem is unfortunately still there, also with the newest versions.