amazon-braket / amazon-braket/amazon-braket-examples
Jupyter / Braket SDK event loop conflict
オープン
- 主要言語
- 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.
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 はまだ評価されていません。