##// END OF EJS Templates
Add %%js alias for %%javascript
Jonathan Frederic -
Show More
@@ -31,6 +31,11 b' class DisplayMagics(Magics):'
31 """
31 """
32
32
33 @cell_magic
33 @cell_magic
34 def js(self, line, cell):
35 """Run the cell block of Javascript code"""
36 self.javascript(line, cell)
37
38 @cell_magic
34 def javascript(self, line, cell):
39 def javascript(self, line, cell):
35 """Run the cell block of Javascript code"""
40 """Run the cell block of Javascript code"""
36 display(Javascript(cell))
41 display(Javascript(cell))
General Comments 0
You need to be logged in to leave comments. Login now