IPython not defined from Javascript

Hopefully, you have seen that the Jupyter ecosystem has changed a lot in the last year or so. If not , go here and look at the bottom half of my reply there. What you are asking about pertains to Jupyter Notebook 7+ and JupyterLab being on JupyterLab components. Most of the posts you find on the internet pertain to older versions of Jupyter.

This example you first invoke using IPython.notebook.kernel.execute() is indeed one of the things that has changed. This is has been covered here on this forum already here and here.

See also: