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

Dynamic update of cell output #318

Closed
dbolotin opened this issue Aug 6, 2021 · 3 comments
Closed

Dynamic update of cell output #318

dbolotin opened this issue Aug 6, 2021 · 3 comments

Comments

@dbolotin
Copy link

dbolotin commented Aug 6, 2021

I want to implement a dynamically updateable cell output. To dynamically show the progress of an ongoing operation.

As I understand DisplayResult interface has an id field which somehow can be used to re-render the object after it was initially displayed in a cell. It seems that the updateDisplay method of the KotlinKernelHost should do exactly that. Unfortunately I didn't find a way to get an instance of the host object.

Can you please point us in the right direction. Is it even possible with the current kernel version?

Thank you.

ileasile added a commit that referenced this issue Aug 6, 2021
@ileasile
Copy link
Contributor

ileasile commented Aug 6, 2021

Hi! It was technically possible, but not convenient to achieve from the notebook. I've added a couple of additional methods, now you may do something like this:
update-display-data

@ileasile
Copy link
Contributor

ileasile commented Aug 6, 2021

Use version 0.10.0.183

@dbolotin
Copy link
Author

dbolotin commented Aug 8, 2021

Thank you! It works!

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