voila-dashboards/voila

Voila cannot show Greek letter (latex format) correctly

Closed this issue · 8 comments

When I marked widgets with description, it is working well in JupyterLab.

Screenshot from 2020-01-16 15-16-18

However, when I use Voila, it cannot show the Greek letter correctly.
Screenshot from 2020-01-16 15-16-29

I am using the least Voila version, which compiled from this Git repository.

jtpio commented

Thanks @uu1477.

That looks related to #470 and #489.

I think this is a regression, only markdown cells render to math.

Correction: this does seem to work in master (browser cache made it not work). Could you try opening the dev console and disable your cache?

jtpio commented

The basics.ipynb notebook still seems to be an issue on master.

image

jtpio commented

But adding a cell below with the following content seems to load the font, which applies to the slider description above:

x = widgets.Checkbox(value=True, description='$\Psi$ Real')
x

image

adding here because I'm guessing it could be related...

Math not display in Voila.

from IPython.display import Math, display, clear_output
import ipywidgets as w

out = w.Output()
with out: 
    clear_output()
    display(Math('\\frac{\\rm{kg}}{\\rm{m}^{2} \\cdot \\rm{s}^{2}}'))
    
out

image

env

ubuntu2004

(aectemplater-dev) jovyan@PORT4028:/mnt/c/engDev/git_mf/tmp/aectemplater/ui$ conda list jupyter
# packages in environment at /home/jovyan/miniconda3/envs/aectemplater-dev:
#
# Name                    Version                   Build  Channel
jupyter_client            7.2.2            py39h06a4308_0  
jupyter_core              4.11.1           py39hf3d152e_0    conda-forge
jupyter_server            1.18.1           py39h06a4308_0  
jupyterlab                3.4.4            py39h06a4308_0  
jupyterlab_pygments       0.1.2                      py_0  
jupyterlab_server         2.12.0           py39h06a4308_0  
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1  
(aectemplater-dev) jovyan@PORT4028:/mnt/c/engDev/git_mf/tmp/aectemplater/ui$ conda list ipywidgets
# packages in environment at /home/jovyan/miniconda3/envs/aectemplater-dev:
#
# Name                    Version                   Build  Channel
ipywidgets                7.6.5              pyhd3eb1b0_1  
(aectemplater-dev) jovyan@PORT4028:/mnt/c/engDev/git_mf/tmp/aectemplater/ui$ conda list voila
# packages in environment at /home/jovyan/miniconda3/envs/aectemplater-dev:
#
# Name                    Version                   Build  Channel
voila                     0.3.6              pyhd8ed1ab_0    conda-forge

just checked this in v0.5.0a5 and the issue still appears to be persisting

image

Thanks John for commenting on both issues!