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

[BUG] Formatted text doesn't display properly in ipywidgets #91

Open
cameron-toy opened this issue Oct 2, 2020 · 0 comments
Open

[BUG] Formatted text doesn't display properly in ipywidgets #91

cameron-toy opened this issue Oct 2, 2020 · 0 comments

Comments

@cameron-toy
Copy link
Collaborator

cameron-toy commented Oct 2, 2020

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

Screen Shot 2020-10-01 at 5 27 07 PM

Widget in dashboard

Screen Shot 2020-10-01 at 5 26 45 PM

Context

  • OS: macOS 10.15.5
  • Browser: Safari 13.1.1
  • JupyterLab Version: 2.1.4
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

No branches or pull requests

1 participant