Javascript错误:JupyterLab中未定义IPython [英] Javascript Error: IPython is not defined in JupyterLab
问题描述
我有最新/更新的Anaconda套餐。每次我尝试使用python 3.6.6绘制内容时,我在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错误:未定义IPython
Javascript Error: IPython is not defined
当我使用ipython内核在Spyder中运行相同的代码时,它运行正常。一直在网上看,但似乎无法弄清楚发生了什么。
任何帮助将不胜感激。
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.
推荐答案
%matplotlib笔记本在nteract中不起作用,你需要使用%matplotlib inline
目前。
"%matplotlib notebook doesn't work in nteract, you'll need to use %matplotlib inline
for now."
添加:
%matplotlib inline
在绘制图表之前。
这篇关于Javascript错误:JupyterLab中未定义IPython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!