%matplotlib inline error

错误描述:

In [1]: %matplotlib inline

UsageError: Invalid GUI request u'inline', valid ones are:['osx', 'qt4', 'glut', 'gtk3', 'pyglet', 'wx', 'none', 'qt', 'gtk', 'tk', None]


解决方法:

1. 安装 ipython-notebook

$  sudo apt-get install ipython-notebook

$ ipython notebook


 在notebook中运行文件


2. 安装 ipython-qtconsole

$  sudo apt-get install ipython-qtconsole

$ ipython ipython-qtconsole

然后在命令行中运行文件

你可能感兴趣的:(deep,learning)