Inside Pycharm(v 2016.1.2),在Ubuntu 15上,当我运行
时import pyqtgraph as pg
import numpy as np
data = np.random.normal(size=(500,2))
pg.plot(data)
我得到输出
Out[10]: <pyqtgraph.graphicsWindows.PlotWindow at 0x7f61de0c0798>
还有一个空白的窗口。但是,当我从Ubuntu终端运行来自python3 runniing的相同命令时,它运行正常。我还注意到,如果我从终端运行Pycharm,我会收到以下可能/可能不相关的警告
[ 7103] ERROR - napi.project.CacheUpdateRunner - PyCharm 2016.1.2 Build #PY-145.844.6
[ 7103] ERROR - napi.project.CacheUpdateRunner - JDK: 1.8.0_76-release
[ 7104] ERROR - napi.project.CacheUpdateRunner - VM: OpenJDK 64-Bit Server VM
[ 7104] ERROR - napi.project.CacheUpdateRunner - Vendor: JetBrains s.r.o
[ 7104] ERROR - napi.project.CacheUpdateRunner - OS: Linux
[ 7104] ERROR - napi.project.CacheUpdateRunner - Last Action:
[ 8658] WARN - napi.components.ServiceManager - com.jetbrains.python.console.PythonConsoleRunnerFactory requested as a service, but it is a component - convert it to a service or change call to ApplicationManager.getApplication().getComponent(). I would really like to keep using Pycharm, so if anyone has a remedy please let me know. Thanks.