-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Describe the bug
Formatted text (text contained in $) displays unformatted in ipywidgets on dashboards.
To Reproduce
Create a widget in JupyterLab using ipywidgets and the following code:
import ipywidgets as widgets
slider = widgets.FloatSlider(description='$x$', value=4)
text = widgets.FloatText(disabled=True, description='$x^2$')
def compute(*ignore):
text.value = str(slider.value ** 2)
slider.observe(compute, 'value')
widgets.VBox([slider, text])
Then, add the widget to a dashboard.
Expected behavior
The displayed widget appears exactly as it does in the notebook.
Screenshots/gifs
Widget in notebook
Widget in dashboard
Context
- OS: macOS 10.15.5
- Browser: Safari 13.1.1
- JupyterLab Version: 2.1.4
Metadata
Metadata
Assignees
Labels
No labels