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

Voila cannot show Greek letter (latex format) correctly #516

Closed
uu1477 opened this issue Jan 16, 2020 · 8 comments · Fixed by #1362
Closed

Voila cannot show Greek letter (latex format) correctly #516

uu1477 opened this issue Jan 16, 2020 · 8 comments · Fixed by #1362

Comments

@uu1477
Copy link

uu1477 commented Jan 16, 2020

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
Copy link
Member

jtpio commented Jan 24, 2020

Thanks @uu1477.

That looks related to #470 and #489.

@maartenbreddels
Copy link
Member

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

@maartenbreddels
Copy link
Member

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
Copy link
Member

jtpio commented Jan 28, 2020

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

image

@jtpio
Copy link
Member

jtpio commented Jan 28, 2020

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

@jgunstone
Copy link

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

@jgunstone
Copy link

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

image

@martinRenou
Copy link
Member

Thanks John for commenting on both issues!

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

Successfully merging a pull request may close this issue.

5 participants