-
Notifications
You must be signed in to change notification settings - Fork 950
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
ipywidgets compatibility with IPython.display.update_display? #1180
Comments
Has the ipython with the |
No, I think it will be released with 6.0. Here is the PR: ipython/ipython#10048 |
Does this work by now? I couldn't make it work up to now. Is this the right function for that? |
Ah I found #1764 |
Here is a minimal example to show this behavior: import ipywidgets
import IPython.display
inn = ipywidgets.IntSlider()
out = ipywidgets.Output()
def create_and_update_display():
d = IPython.display.display(IPython.display.Code("hi"), display_id=True)
d.update(IPython.display.Code("there"))
def update_output(value):
out.clear_output()
with out:
create_and_update_display()
return out.outputs
ipywidgets.dlink((inn, 'value'), (out, 'outputs'), update_output)
ipywidgets.VBox([inn, out]) I would expect it to display This support is needed when you want to wrap some output that is updated asynchronously in a widget. |
Here's a minimal example using import altair as alt
import ipywidgets as widgets
cars = alt.load_dataset('cars')
def render_chart(x, y):
return alt.Chart(cars).mark_point().encode(
x=x,
y=y,
color='Origin',
)
widgets.interact(render_chart, x=list(cars), y=list(cars)); |
Has this been fixed @vidartf ? |
I created an example notebook to demonstrate
update_display
forIPython.display.HTML
andipywidgets.widgets.IntProgress
and the progress bar doesn't update.https://gist.github.com/gnestor/867a1bd14125fbeba30dadf9c19c68a9
The text was updated successfully, but these errors were encountered: