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

Kernel.do_one_iteration never awaited #11

Closed
kafonek opened this issue Aug 4, 2021 · 1 comment · Fixed by #14
Closed

Kernel.do_one_iteration never awaited #11

kafonek opened this issue Aug 4, 2021 · 1 comment · Fixed by #14

Comments

@kafonek
Copy link
Owner

kafonek commented Aug 4, 2021

Ran into this while working on ideas to solve #10. Was on WSL / dockerized Jupyter based off the docker-stacks minimal-notebook image.

Code:

# cell 1
import ipython_blocking
import ipywidgets as widgets

button = widgets.Button(description="click me", button_style="info")
button

# cell 2
%blockrun button

Error:

/home/jovyan/ipython_blocking/ipython_blocking/ipython_blocking.py:21: RuntimeWarning: coroutine 'Kernel.do_one_iteration' was never awaited
  self.kernel.do_one_iteration()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Versions:

jupyter core     : 4.7.1
jupyter-notebook : 6.4.0
qtconsole        : not installed
ipython          : 7.25.0
ipykernel        : 6.0.3
jupyter client   : 6.1.12
jupyter lab      : 3.0.16
nbconvert        : 6.1.0
ipywidgets       : 7.6.3
nbformat         : 5.1.3
traitlets        : 5.0.5
@dokempf
Copy link

dokempf commented Aug 10, 2021

I can confirm this bug. For me, downgrading to ipython==7.21.0 and ipykernel==5.5.5 solves the issue. This is not meant as a solution, but as a hint for finding the root of the problem.

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

Successfully merging a pull request may close this issue.

2 participants