Skip to content
Advertisement

Javascript Error: IPython is not defined in JupyterLab

I have the latest/updated Anaconda package. Everytime I try to plot something using python 3.6.6 I get the following error in JupyterLab…

Javascript Error: IPython is not defined

When I run the same code in Spyder using an ipython kernel, it works just fine. Have been looking all over online but cant seem to figure out what is going on. Any help would be appreciated.

Advertisement

Answer

Jupyter Lab does support interactive matplotlib through the jupyter-matplotlib extension. See TomNorway‘s answer.

Alternatively, you can configure matplotlib to use inline instead. inline is not as powerful as interactive, but it can save you.

To use inline, add this line before plot the graph:

    %matplotlib inline

More Info

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement