Skip to content

Commit

Permalink
Merge pull request #1885 from OrkoHunter/find_available_plugins
Browse files Browse the repository at this point in the history
DOC : Update plugins page
  • Loading branch information
soupault committed Jan 20, 2016
2 parents 9050a52 + a7bcee2 commit ce4bc59
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions doc/source/user_guide/plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,18 @@ Any plugin in the ``_plugins`` directory is automatically examined by
system::

>>> import skimage.io as io
>>> io.plugins()
>>> io.find_available_plugins()
{'gtk': ['imshow'],
'matplotlib': ['imshow', 'imsave'],
'pil': ['imread'],
'qt': ['imshow'],
'test': ['imsave', 'imshow', 'imread']}
'matplotlib': ['imshow', 'imread', 'imread_collection'],
'pil': ['imread', 'imsave', 'imread_collection'],
'qt': ['imshow', 'imsave', 'imread', 'imread_collection'],
'test': ['imsave', 'imshow', 'imread', 'imread_collection'],}

or only those already loaded::

>>> io.plugins(loaded=True)
{'pil': ['imread']}
>>> io.find_available_plugins(loaded=True)
{'matplotlib': ['imshow', 'imread', 'imread_collection'],
'pil': ['imread', 'imsave', 'imread_collection']}

A plugin is loaded using the ``use_plugin`` command::

Expand All @@ -78,7 +79,7 @@ last plugin loaded is used.
To query a plugin's capabilities, use ``plugin_info``::

>>> io.plugin_info('pil')
>>>
>>>
{'description': 'Image reading via the Python Imaging Library',
'provides': 'imread'}
'provides': 'imread, imsave'}

0 comments on commit ce4bc59

Please sign in to comment.