Skip to content

Commit 3733b2f

Browse files
author
huajie.liu
committed
fix blocking issue when cell contains ipywidget
1 parent 35e0de2 commit 3733b2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nbclient/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,8 @@ async def _async_poll_for_reply(
772772
deadline = monotonic() + timeout
773773
new_timeout = float(timeout)
774774
else:
775+
# if we set new_timeout None value , and pass to the function of shell_channel.get_msg, will sometimes
776+
# blocking so need pass a timeout value, and reset the value when timeout value exhausted
775777
deadline = monotonic() + 5
776778
new_timeout = float(5)
777779
error_on_timeout_execute_reply = None

0 commit comments

Comments
 (0)