diff --git a/docs/quickstart/model.rst b/docs/quickstart/model.rst index f7858ceb8e..63795ee8ac 100644 --- a/docs/quickstart/model.rst +++ b/docs/quickstart/model.rst @@ -231,6 +231,17 @@ You may have noticed we're importing from ``dffml.noasync``. If you're using .. literalinclude:: /../examples/quickstart_async.py + +If you are running this on Jupyter (Jupyter Lab or Jupyter Notebook), you +might encounter the RuntimeError caused by the event loop started automatically +by Jupyter. To solve this problem, simply replace the last line of codes +.. code-block :: Python + asyncio.run(main()) + +with +.. code-block :: Python + await(main()) + HTTP ----