Make pycharm use real ipython console

In pycharm, the ipython console does not seem to be the real ipython console.

In pycharm ipython console:

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

In a real ipython console:

 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 

I saw some other differences: does not load ipython profile , different behavior when using shortcut to get back previous commands

Is there any real ipython console in pycharm at all? And this console is still compatible with shortcuts to run the selected code in the console.

+1
source share
1 answer

Could it be that you are using different versions of virtual environments / python in PyCharm and locally? This can perfectly explain the differences in results.

Can you run this code in both and compare the result:

 import IPython; IPython.version_info 

EDIT

Confirmed, PyCharm converts ipython output, even if the versions match.

0
source

Source: https://habr.com/ru/post/1268977/


All Articles