##// END OF EJS Templates
Improve async detection mechanism with blacklist...
Improve async detection mechanism with blacklist Because the async repl works by wrapping any code that raises SyntaxError in an async function and trying to execute it again, cell bodies that are invalid at the top level but valid in functions and methods (e.g. return and yield statements) currently allow executing invalid code. This patch blacklists return and yield statements outside of a function or method to restore the proper SyntaxError behavior.

File last commit:

r22601:1f6c3478
r24485:c4bf6326
Show More
magics.rst
23 lines | 943 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. While, the syntax element has 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.