Refactor the magics so that we install a magic. We should replace the fixed eval loop with one that runs through the installed magics. If one of the magics handles the input, then we stop.
The magics themselves should handle whether they grab a '%' prefixed line or not. THey should have access to the entire input. This will alow things like an io_magic that shortcuts things like ls, pwd.
Also, this would allow us to try an ipython mode where if you turn it on, all input is considered python and sent to the ipython bridge.
Refactor the magics so that we
install
a magic. We should replace the fixed eval loop with one that runs through the installed magics. If one of the magics handles the input, then we stop.The magics themselves should handle whether they grab a '%' prefixed line or not. THey should have access to the entire input. This will alow things like an io_magic that shortcuts things like
ls
,pwd
.Also, this would allow us to try an
ipython
mode where if you turn it on, all input is considered python and sent to the ipython bridge.