Show More
@@ -36,12 +36,23 b' class DisplayMagics(Magics):' | |||||
36 | """Run the cell block of Javascript code |
|
36 | """Run the cell block of Javascript code | |
37 |
|
37 | |||
38 | Alias of `%%javascript` |
|
38 | Alias of `%%javascript` | |
|
39 | ||||
|
40 | Starting with IPython 8.0 %%javascript is pending deprecation to be replaced | |||
|
41 | by a more flexible system | |||
|
42 | ||||
|
43 | Please See https://github.com/ipython/ipython/issues/13376 | |||
39 | """ |
|
44 | """ | |
40 | self.javascript(line, cell) |
|
45 | self.javascript(line, cell) | |
41 |
|
46 | |||
42 | @cell_magic |
|
47 | @cell_magic | |
43 | def javascript(self, line, cell): |
|
48 | def javascript(self, line, cell): | |
44 |
"""Run the cell block of Javascript code |
|
49 | """Run the cell block of Javascript code | |
|
50 | ||||
|
51 | Starting with IPython 8.0 %%javascript is pending deprecation to be replaced | |||
|
52 | by a more flexible system | |||
|
53 | ||||
|
54 | Please See https://github.com/ipython/ipython/issues/13376 | |||
|
55 | """ | |||
45 | display(Javascript(cell)) |
|
56 | display(Javascript(cell)) | |
46 |
|
57 | |||
47 |
|
58 |
General Comments 0
You need to be logged in to leave comments.
Login now