Sebastian Witowski 2/15/2019

Creating Magic Functions in IPython - Part 3

Read Original

This technical tutorial, part 3 of a series, details the creation of IPython magic functions using Magics classes. It covers inheritance from the Magics class, necessary decorators, and registration. A practical example builds a %mypy line magic that performs type checking on code from specified previous cells, parsing cell ranges and mypy command-line arguments.

Creating Magic Functions in IPython - Part 3

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week