##// END OF EJS Templates
Don't nest asyncio input hooks....
Don't nest asyncio input hooks. This fixes the "event loop already running" error. For prompt_toolkit 2.0: this will still nest the event loops, but that's fine, because we have the asyncio event loop running an prompt_toolkit's custom loop. They don't interfere with each other. For prompt_toolkit 3.0: we only use one asyncio event loop when "%gui asyncio" is used. The terminal prompt will now use the active asyncio event loop.

File last commit:

r24592:01b0f00c
r25308:74439e40
Show More
magics.rst
23 lines | 937 B | text/x-rst | RstLexer

Built-in magic commands

Note

To Jupyter users: Magics are specific to and provided by the IPython kernel. Whether Magics are available on a kernel is a decision that is made by the kernel developer on a per-kernel basis. To work properly, Magics must use a syntax element which is not valid in the underlying language. For example, the IPython kernel uses the % syntax element for Magics as % is not a valid unary operator in Python. However, % might have meaning in other languages.

Here is the help auto-generated from the docstrings of all the available Magics function that IPython ships with.

You can create an register your own Magics with IPython. You can find many user defined Magics on PyPI. Feel free to publish your own and use the Framework :: IPython trove classifier.