Moves nest_asyncio import and apply to skipped cell during testing.
"source": [
"#@test {\"skip\": true}\n",
"!pip install --quiet --upgrade tensorflow_federated\n",
- "!pip install --quiet --upgrade nest_asyncio"
+ "!pip install --quiet --upgrade nest_asyncio\n",
+ "\n",
+ "import nest_asyncio\n",
+ "nest_asyncio.apply()\n"
]
},
{
"import tensorflow as tf\n",
"import tensorflow_federated as tff\n",
"\n",
- "import nest_asyncio\n",
- "nest_asyncio.apply()\n",
- "\n",
"np.random.seed(0)"
]
},
