2016-03-31 40 views
1

Tamam Bir süredir bu problemde bulundum ve bir kayıp yaşıyorum.Matuplotlib inline ile Jupyter QtConsole sözdizimi inline

Jupyter QtConsole çalıştırıyorum ve bir python betiği çalıştırmaya çalışıyorum.

from __future__ import division 
from ipywidgets import * 
import numpy as np 
import matplotlib.pyplot as p 
%matplotlib inline 

QtConsole bana bir hata veren tutar: Bu ipython belirli bir koddur okumak ve ben terminal ve yazarak giderek yük Jupyter QtConsole içinde çalışması gerekir kadarıyla

run test.py 
    File "/home/Bob/Desktop/test.py", line 5 
    %matplotlib inline 
    ^
SyntaxError: invalid syntax 

:

[email protected]:~/Desktop$ jupyter qtconsole 

Bunu terminalde verir, ancak daha sonra qtconsole'u yükler.

/usr/local/lib/python2.7/dist-packages/IPython/paths.py:62: UserWarning: IPython dir '/home/bob/.ipython' is not a writable location, using a temp directory. 
    " using a temp directory.".format(ipdir)) 
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
/usr/local/lib/python2.7/dist-packages/IPython/paths.py:62: UserWarning: IPython dir '/home/bob/.ipython' is not a writable location, using a temp directory. 
    " using a temp directory.".format(ipdir)) 

Lütfen Yardım.

cevap

0

qtconsole'u başlattıktan sonra, konsoldaki% matplotlib satırını ve satır içi tüm satırlar satır içi görünecektir.

Bu yardımcı olur umarım.