Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note about %autoawait off for IPython #14546

Merged
merged 2 commits into from Jun 22, 2021

Conversation

freakboy3742
Copy link
Member

IPython 7 introduced an implicit event loop so that you can await from the interactive prompt. As a side effect, this means it's now possible to trigger SynchronousOnlyOperation errors from the IPython shell prompt.

This implicit event loop can be disabled with the %autoawait off directive.

As Django provides explicit support for IPython in manage.py shell, it may be helpful to know about the existence of this directive.

Copy link
Member

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @freakboy3742 — Welcome back! 😀

(We'll have to see if we can get you on the DSF Board or something. 😜)

Thanks for this, looks good.

@carltongibson carltongibson merged commit 4f0a034 into django:main Jun 22, 2021
@freakboy3742 freakboy3742 deleted the ipython-async-docs branch June 23, 2021 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants