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

Handle traitlet messages during cell execution #105

Closed
dsblank opened this issue Oct 10, 2015 · 3 comments
Closed

Handle traitlet messages during cell execution #105

dsblank opened this issue Oct 10, 2015 · 3 comments
Milestone

Comments

@dsblank
Copy link
Contributor

dsblank commented Oct 10, 2015

We have the need to be able to stay in a loop waiting for a widget value to change while executing cell code. Here is a little version of the desire:

from ipywidgets import widgets
from IPython.display import display
i = widgets.IntText()
display(i)
i.value = 78
while i.value == 78:
    pass

We would like to be able to change the value in the displayed IntText and have the loop stop when the detected value changes. I understand that jupyter is not designed to do this, but we would like to replicate a pre-existing API in the notebook.

Is it possible, while the cell is executing, to call a kernel function that will process queued comm messages? This might not be a long term solution, but is necessary for the existing architecture.

@dsblank
Copy link
Contributor Author

dsblank commented Oct 10, 2015

This is probably in the wrong place. Probably should be in "notebook", yes?

@minrk
Copy link
Member

minrk commented Oct 10, 2015

@dsblank sorry about the many-repo confusion. ipykernel or ipywidgets would be the place, depending on whether it's specific to widgets or handling messages in general.

@dsblank
Copy link
Contributor Author

dsblank commented Oct 10, 2015

No problem! I spelled the issue out a bit more clearly, and moved to:
ipython/ipykernel#65

@dsblank dsblank closed this as completed Oct 10, 2015
@minrk minrk added this to the no action milestone Oct 10, 2015
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

2 participants