gregsexton / ob-ipython

org-babel integration with Jupyter for evaluation of (Python by default) code blocks
739 stars 109 forks source link

Add support for company-backend doc-buffer #142

Closed cpbotha closed 6 years ago

cpbotha commented 6 years ago

Whilst going through company-ob-ipython completions, you can request documentation using f1 or C-h. ob-ipython will inspect the completion candidate and show the docs using the ob-ipython-inspect functionality.

I had to factor out the ob-ipython--inspect-code defun in order to be able to call it from the doc-buffer handling. I also added comments and docs here and there. Existing functionality remains unchanged.

cpbotha commented 6 years ago

image

gregsexton commented 6 years ago

This is very cool. Thanks for sending. I'll be bored on a plane today so will look to merge then. :)

cpbotha commented 6 years ago

@gregsexton Please let me know if you need any more inputs to be able to merge this.

It's possible that we want to make more PRs in the future.

gregsexton commented 6 years ago

Sorry about this. I merged last week but forgot to push. :D

cpbotha commented 6 years ago

Great stuff, thank you for merging!