MCPcopy Index your code
hub / github.com/ipython/ipython / javascript

Method javascript

IPython/core/magics/display.py:48–56  ·  view source on GitHub ↗

Run the cell block of Javascript code Starting with IPython 8.0 %%javascript is pending deprecation to be replaced by a more flexible system Please See https://github.com/ipython/ipython/issues/13376

(self, line, cell)

Source from the content-addressed store, hash-verified

46
47 @cell_magic
48 def javascript(self, line, cell):
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 """
56 display(Javascript(cell))
57
58
59 @cell_magic

Callers 1

jsMethod · 0.95

Calls 2

displayFunction · 0.90
JavascriptClass · 0.90

Tested by

no test coverage detected