From 35331a37b2cf29e779d937bffee8606aa2418bc7 2021-12-25 10:39:52 From: Matthias Bussonnier Date: 2021-12-25 10:39:52 Subject: [PATCH] Merge pull request #13380 from Carreau/deprecate-js Start deprecating %%javascript/%%js --- diff --git a/IPython/core/magics/display.py b/IPython/core/magics/display.py index c4350e4..6c0eff6 100644 --- a/IPython/core/magics/display.py +++ b/IPython/core/magics/display.py @@ -36,12 +36,23 @@ class DisplayMagics(Magics): """Run the cell block of Javascript code Alias of `%%javascript` + + 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.javascript(line, cell) @cell_magic def javascript(self, line, cell): - """Run the cell block of Javascript code""" + """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 + """ display(Javascript(cell))