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

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

Open
CnBDM-Su opened this issue Feb 21, 2024 · 0 comments
Open

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

CnBDM-Su opened this issue Feb 21, 2024 · 0 comments

Comments

@CnBDM-Su
Copy link

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?

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