2016-12-26 76 views
-1

我有一些代码来生成一个ifpy iframe,它工作在Jupyter,但不是在Spyder中。如何在Spyder中显示IFrame或弹出html?如何在spyder python中显示ipython iframe?

在Spyder的蟒蛇,我在IPython的解释中写道:在Spyder的

from pivottablejs import pivot_ui 
pivot_ui(df) 
<IPython.lib.display.IFrame at 0x12a9b8d0> 

回答

1

要在活动的流行,我们需要去偏好/图形,使Qt的。 所以所有Ipython交互式都会弹出QT。

+0

我怀疑这是否适用于Spyder,因为'pivottablejs'需要Jupyter笔记本,如下所示:http://nicolas.kruchten.com/content/2015/09/jupyter_pivottablejs/ –