これはAnacondaのIPython 4.2.0とSpyder 2.3.9では動作しませんでしたが、動作しませんでした。アー。Spyderが私のIPython設定ファイルに従っていないのはなぜですか?
は私が出た場合IPythonは、それが正しくファイル読み込みかのように、それは、正しいよう設定:だから、
get_ipython().config
Out[1]:
{'IPCompleter': {'greedy': True},
'IPKernelApp': {'exec_lines': ['%pylab qt']},
'InlineBackendConfig': {},
'InteractiveShell': {'xmode': 'Plain'},
'InteractiveShellApp': {'exec_lines': ['from __future__ import division',
'from __future__ import print_function',
'from __future__ import with_statement',
'from numpy import set_printoptions',
'set_printoptions(suppress=True, precision=4)',
'from sympy import init_printing',
'init_printing(forecolor="White")'],
'pylab': 'auto'},
'StoreMagics': {'autorestore': True},
'ZMQInteractiveShell': {'autocall': 0, 'banner1': ''}}
将来の分裂とnumpyの抑制を持っていることになっていますが、実際にはしません:
division
Out[1]: _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
4/5
Out[2]: 0
np.get_printoptions()
Out[3]:
{'edgeitems': 3,
'formatter': None,
'infstr': 'inf',
'linewidth': 75,
'nanstr': 'nan',
'precision': 8,
'suppress': False,
'threshold': 1000}
eps = np.finfo(float).eps; x = np.arange(4.); x**2 - (x + eps)**2
Out[4]:
array([ -4.93038066e-32, -4.44089210e-16, 0.00000000e+00,
0.00000000e+00])
これは、それが何をすべきかです:
from __future__ import division
division
Out[2]: _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
4/5
Out[3]: 0.8
np.set_printoptions(suppress=True)
eps = np.finfo(float).eps; x = np.arange(4.); x**2 - (x + eps)**2
Out[5]: array([-0., -0., 0., 0.])
np.get_printoptions()
Out[6]:
{'edgeitems': 3,
'formatter': None,
'infstr': 'inf',
'linewidth': 75,
'nanstr': 'nan',
'precision': 8,
'suppress': True,
'threshold': 1000}
正規IPythonはcorrectlの作品Y(C:\Anaconda2\python.exe C:\Anaconda2\cwp.py C:\Anaconda2 "C:/Anaconda2/python.exe" "C:/Anaconda2/Scripts/ipython-script.py"
)
Jupyter QTConsoleが正常に動作する(C:\Anaconda2\pythonw.exe C:\Anaconda2\cwp.py C:\Anaconda2 "C:/Anaconda2/pythonw.exe" "C:/Anaconda2/Scripts/jupyter-qtconsole-script.py"
)
スパイダーで[このバグ](https://github.com/spyder-ide/spyder/issues/3354)と関連していますか? –
@PeterBrittainいいえ、それは良い回避策です! – endolith
おそらく迷惑な答え(誰も再インストールしたくない)があるかもしれません。 Anaconda 4.2にはバグがありました。私はgithub投稿の問題に関わってきました。彼らは、おそらく予定されているリリースや他の人々の問題に対して優先順位を付ける必要があったかもしれませんが、彼らを調べることは非常にうまくいきました。 Anaconda 4.3.1がリリースされました。アップグレードを試して、問題が解決したかどうかを確認することができます。スパイダーバグへのリンクをクリックして、プロジェクトにフォローアップして問題を投稿してもらうこともできます。 – TMWP