Receiving an error in Python 2.7.8 (IPython 2.2.0) when using code %matplotlib inline

0 views
Skip to first unread message

Brandon J

unread,
Mar 28, 2015, 6:37:32 PM3/28/15
to anac...@continuum.io

When I use the code:

%matplotlib inline

I receive an error message saying "UsageError: Invalid GUI request u'inline', valid ones are:['osx','qt4', 'glut', 'gtk3', 'pyglet', 'wx','none', 'qt', None,'gtk','tk']

What gives?

I'm running Python 2.7.8 in Anaconda 2.1.0 on Windows 8 64-bit.

Eric Firing

unread,
Mar 28, 2015, 6:44:21 PM3/28/15
to anac...@continuum.io
On 2015/03/28 12:37 PM, 'Brandon J' via Anaconda - Public wrote:
> When I use the code:
>
> %matplotlib inline
>
> I receive an error message saying "UsageError: Invalid GUI request
> u'inline', valid ones are:['osx','qt4', 'glut', 'gtk3', 'pyglet',
> 'wx','none', 'qt', None,'gtk','tk']
>
> What gives?

It sounds like you are running from a text terminal, not in the notebook
or from a qtconsole. The inline backend only works in those (graphical)
environments.

Try starting ipython with

ipython qtconsole


Eric

>
> I'm running Python 2.7.8 in Anaconda 2.1.0 on Windows 8 64-bit.
>
> --
> Anaconda Community Support Group Brought to you by Continuum Analytics
> ---
> You received this message because you are subscribed to the Google
> Groups "Anaconda - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to anaconda+u...@continuum.io
> <mailto:anaconda+u...@continuum.io>.
> To post to this group, send email to anac...@continuum.io
> <mailto:anac...@continuum.io>.
> Visit this group at http://groups.google.com/a/continuum.io/group/anaconda/.

peng...@gmail.com

unread,
Sep 11, 2015, 8:17:45 PM9/11/15
to Anaconda - Public
Great.

在 2015年3月29日星期日 UTC+8上午6:37:32,Brandon J写道:
Reply all
Reply to author
Forward
0 new messages