add magic for proper ipython extension