dalejung / inode

Interactive Node.js
MIT License
3 stars 1 forks source link

refactor the magics stuff #8

Closed dalejung closed 11 years ago

dalejung commented 11 years ago

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.

dalejung commented 11 years ago

a3b8c1fce74a149dcca1c6dc460b691784d849f7