amazon-braket / amazon-braket/amazon-braket-examples

Jupyter / Braket SDK event loop conflict

オープン
#857 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
589
フォーク
262
平均マージ
13時間 38分
マージ済み PR(30日)
7

説明

# Scope
`examples/getting_started/0_Getting_started/0_Getting_started.ipynb`
It seems the issue may reside with the Braket SDK.

# Problem
I found that when working through the getting started guide, I encountered a runtime error due to a conflict with Jupyter's event loop conflicting with the Braket SDK's async internals.

Image

Note the output `Counter({'00': 7, '11': 3})` still printed — the task actually completed, but the exception fires in the callback cleanup.

# Work around
Apply `nest_asyncio` before the Braket SDK import
```
import nest_asyncio
nest_asyncio.apply()
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。