Formatting online help in PyCharm python console

In the PyCharm python console, when the documentation of a function is requested, it returns a dictionary which is not easy to read. For example,

? os.path

      

will print

{'text/plain': "Type:        module\nString form: <module 'ntpath' from 'C:\\\\Users\\\\Bob\\\\AppData\\\\Local\\\\Continuum\\\\Miniconda3\\\\envs\\\\bob\\\\lib\\\\ntpath.py'>\nFile:        c:\\users\\bob\\appdata\\local\\continuum\\miniconda3\\envs\\bob\\lib\\ntpath.py\nDocstring:  \nCommon pathname manipulations, WindowsNT/95 version.\n\nInstead of importing this module directly, import os and refer to this\nmodule as os.path.\n"}

      

Can PyCharm be configured to return a formatted version of this help like in the standard IPython console?

The question might also be how to get this formatted help from the console in PyCharm. I know that the QuickHelp popup window can be invoked by pressing Ctrl + Q on the function name in the open file. However, when I debug the console window, I don't want to modify my file and type the function name in a random place to get help if possible.

+3


source to share





All Articles