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

display updates do not work properly in cocalc-jupyter #7164

Closed
williamstein opened this issue Jan 4, 2024 · 3 comments
Closed

display updates do not work properly in cocalc-jupyter #7164

williamstein opened this issue Jan 4, 2024 · 3 comments

Comments

@williamstein
Copy link
Contributor

This input

handle = display("before", display_id=True)
handle.update("after")

should result in the output 'after'.

image

@rgbkrk writes: "This should end up as a single output that reads "after". This also should work across cells, defining the handle in a prior cell and updating it later. It's very useful for progress bars without needing widgets as well as updating an image during generation. As an example, OpenAI uses this feature in this cookbook: https://cookbook.openai.com/examples/gpt_with_vision_for_video_understanding"

@rgbkrk
Copy link
Contributor

rgbkrk commented Jan 4, 2024

@williamstein
Copy link
Contributor Author

Just a remark that I recently broke this in the opposite direction. Now there is no output at all:

image

I broke this because I was reading the spec for other reasons (namely modernizing our ipywidgets support), noticed these new transient messages, read that transient messages are optional, and changed the frontend rendering code to ignore them. So now nothing is displayed in this case.

@williamstein
Copy link
Contributor Author

I think this is a dup of #2132, also reported by @rgbkrk , but in 2017.

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

No branches or pull requests

2 participants