These are chat archives for ipython/ipython
Are there any plans to change how custom magics are defined? As far as I can tell, it has to be done either by an extension, or in the ipython profile (which got somewhat more complicated with Ipython 4.0).
What I would highly prefer instead would be to install them with pip, just as it is possible to do for extensions.
from dummy import *. "Explicit is better than implicit.", and pylab is annoying because it does implicit things.
Well in my case the magic has an optional argument, that changes how it behaves, here is the actual code:
It's really as explicit as I was able to make it (i.e. it either just prints the code that was executed, or actually replaces the cell content with the code, and later the magic is not run at all)
So I guess the dummy package is not environment-aware, and we need it
Ok, an actual question:
Is the part about auto-loading extensions in here still relevant ? https://ipython.org/ipython-doc/dev/config/extensions/index.html#using-extensions
I guess it does not make sense to add python-specific extensions to be auto-loaded in jupyter config, however I can't see how the same behaviour can be acheved for the notebook.