From 880c3524f377b5325e281730f17195022cc05560 2017-03-09 16:40:20 From: Matthias Bussonnier Date: 2017-03-09 16:40:20 Subject: [PATCH] [Docs] Add link on how to register class magics. I also pushed a change on ipython.github.io that added rel=canonical to the custommagic page which now point to readthedocs. That should bias Google into not showing IPython docs version 3 for this kind of searches. --- diff --git a/IPython/core/magic.py b/IPython/core/magic.py index 132e958..9ab7af6 100644 --- a/IPython/core/magic.py +++ b/IPython/core/magic.py @@ -167,6 +167,8 @@ resulting magic:: def foo(...) will create a {1} magic named `bar`. + +To register a class magic use ``Interactiveshell.register_magic(class or instance)``. """ # These two are decorator factories. While they are conceptually very similar,