2017-06-06 1 views
1

pycharmでは、ipythonコンソールは実際のipythonコンソールではないようです。実際のipythonコンソールでpycharmが実際のipythonコンソールを使うようにする

In[1]: ?sorted 
{'text/plain': 'Signature: sorted(iterable, key=None, reverse=False)\nDocstring:\nReturn a ne 

:pycharmのipythonコンソールで

does not load ipython profile

different behavior when using shortcut to get back previous commandsがとにかくあり、実際のipythonを持っている:

In [5]: ?sorted 
Signature: sorted(iterable, key=None, reverse=False) 
Docstring: 
Return a new list containing all items from the iterable in ascending order. 

A custom key function can be supplied to customise the sort order, and the 
reverse flag can be set to request the result in descending order. 
Type:  builtin_function_or_method 

私はいくつかの他の違いを見てpycharmのコンソール?このコンソールは、選択したコードをコンソールで実行するためのショートカットとまだ互換性があります。

答えて

0

PyCharmとローカルで異なる仮想環境/ Pythonバージョンを使用している可能性はありますか?それは出力の違いを完全に説明することができます。

あなたは、両方でこのコードを実行し、出力を比較することができます:

import IPython; IPython.version_info 

EDIT

が確認、PyCharmは、バージョンが同じであっても ipythonの出力を変換します。

+1

pycharmでは、私はこれを得ます: 'import IPython; IPython.version_info Out [13]:(6、1、0、 '') '、ipythonで、私は同じことを.... – Oli

関連する問題