Skip to content

Obeserve not works when showing result in widgets.Output() #898

Open
@CnBDM-Su

Description

I want to display the observe function result in widgets.Output() instead of current frame.
So I tried two ways.
1.
data_output = widgets.Output()
def show_dataframe(change):
with data_output:
clear_output()
display(data_frame.iloc[change['new']][:10])
js2py_memory.observe(show_dataframe, names=["data"])

data_output = widgets.Output()
def show_dataframe(change):
clear_output()
display(data_frame.iloc[change['new']][:10])
with data_output:
js2py_memory.observe(show_dataframe, names=["data"])

Both two ways cannot change the display location of observe.

Is there any ways that I can display the result in output?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions