Wednesday, November 26, 2014

Calling pydoc from anaconda environment

I was trying to get documentation around twitter package that I have recently installed. However, doing so from the Mac terminal did not return anything. Finally, I figured a way to take a look at the documentation from within the Anaconda environment.

From within Anaconda, launch the iPython QTConsole and import the pydoc package:

 import pydoc  

Once you have imported pydoc package, you can take a look at documentation related to any of the installed packages using simple help() command as follows (output image cropped due to lack of space):

 help ('twitter') 



Do not forget to wrap your package name in quotes ''. Else, you may not get any results.



No comments:

Post a Comment