Skip to content

Unable to access pydoc from plugin #147

@gzagatti

Description

@gzagatti

Hi,

The get_doc_buffer function does not work. I get the following error message:

Traceback (most recent call last):
    doc = get_doc(word, level)
  File "~/.vim/bundle/vim-ipython/ftplugin/python/vim_ipython.py", line 235, in get_doc
    msg_id = kc.shell_channel.object_info(word, level)
AttributeError: 'ZMQSocketChannel' object has no attribute 'object_info'
  File "<string>", line 1
    get_doc_buffer(print)
                       ^
SyntaxError: invalid syntax

It seems that the attribute object_info does not work. I wonder if it wouldn't be easy to just send the word appended of the ?-mark to the the IPython server. That's how the pydoc is accessed anyway on the console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions