Skip to content

Commit

Permalink
Bring back nest-asyncio to allow running notebooks with latest release (
Browse files Browse the repository at this point in the history
#4472)

Fixes #4470
Review: @viathor
  • Loading branch information
maffoo committed Aug 25, 2021
1 parent de31ee9 commit b44387a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/operators_and_observables.ipynb
Expand Up @@ -800,6 +800,21 @@
"The pattern for computing $\\text{Tr} [ \\rho O ]$ is shown below."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "7d55b4675db8"
},
"outputs": [],
"source": [
"# Install nest-asyncio to run collector inside jupyter.\n",
"# This will no longer be necessary in cirq 0.13+.\n",
"!pip install nest-asyncio\n",
"import nest_asyncio\n",
"nest_asyncio.apply() "
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit b44387a

Please sign in to comment.