|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
请教各位:
我在Pycharm中输入%matplotlib inline报错,似乎导致后来的pandas里的plot()都展示不出来各种图。具体报错如下
%matplotlib inline
Traceback (most recent call last):
File "E:\PyCharm\helpers\pydev\pydev_ipython\inputhook.py", line 529, in enable_gui
gui_hook = guis[gui]
KeyError: 'inline'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\PyCharm\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 129, in enable_gui
return real_enable_gui(gui, app)
File "E:\PyCharm\helpers\pydev\pydev_ipython\inputhook.py", line 535, in enable_gui
raise ValueError(e)
ValueError: Invalid GUI request 'inline', valid ones are:dict_keys(['none', 'osx', 'tk', 'gtk', 'wx', 'qt', 'qt4', 'qt5', 'glut', 'pyglet', 'gtk3'])
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3267, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-33-9e3324102725>", line 1, in <module>
get_ipython().run_line_magic('matplotlib', 'inline')
File "E:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2287, in run_line_magic
result = fn(*args,**kwargs)
File "<decorator-gen-108>", line 2, in matplotlib
File "E:\Anaconda3\lib\site-packages\IPython\core\magic.py", line 187, in <lambda>
call = lambda f, *a, **k: f(*a, **k)
File "E:\Anaconda3\lib\site-packages\IPython\core\magics\pylab.py", line 99, in matplotlib
gui, backend = self.shell.enable_matplotlib(args.gui)
File "E:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3360, in enable_matplotlib
self.enable_gui(gui)
File "E:\PyCharm\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 131, in enable_gui
raise UsageError("%s" % e)
IPython.core.error.UsageError: Invalid GUI request 'inline', valid ones are:dict_keys(['none', 'osx', 'tk', 'gtk', 'wx', 'qt', 'qt4', 'qt5', 'glut', 'pyglet', 'gtk3'])
|
|