[IPython-dev] CoffeeScript Support

Carl Smith carl.input at gmail.com
Sat Jul 14 13:37:53 EDT 2012


I was playing with a magic last night that takes a line or cell of
CoffeeScript and compiles it to a JavaScript function. It then prints
the JavaScript as the output and also calls display(Javascript()) to
load it into the page.


If I do...

%coffee alert 'hello world'

then it prints...

(function() {

  alert('hello world');

}).call(this);

and an alert pops up saying hello world.

Has anyone else looked into doing anything with CoffeeScript? It seems
like it'd be handy in the Notebook.



More information about the IPython-dev mailing list