Short Description

Extracts Python files stored in plugins so that they can be used in Icy.

Team: Bio Image Analysis
Institution: Institut Pasteur
Website: https://icy.bioimageanalysis.org

Documentation

This plugin is responsible for walking though the plugins loaded by Icy, and extracting the Python files stored in them.

To ship Python files, a plugin must contain a class that extends icy.plugin.abstract_.Plugin, and this class must be annotated with plugins.tlecomte.pythonExtractor.PythonLibraries.

The Python files needs to be located in a directory called “PythonLibs”. All the files in this directory will be extracted to the Python “Lib” directory of Icy. The recommended way of installing Python modules, no matter what interpreter you use, is to put them in the “Lib/site-packages” directory.

For example, if we want to ship a module called “processing.py”, it must be placed in “PythonLibs/site-packages/processing.py”. Then the PythonLibs directory must be included in the plugin jar, together with a Java classextending Plugin as described above.

 

Leave a Review

Leave a review
Cancel review
View full changelog
Close changelog

Changelog

  • Version 2.0.0.0 • Released on: 2020-10-16 11:15:00
    Download
    Description:

    This plugin is now bundled into Jython for Icy plugin.

  • Version 1.1.0.0 • Released on: 2020-07-23 12:30:00
    Download
    Description:

    Reverted PythonLibraries annotation location to PythonExtractor plugin (make more sense) (Stephane)

  • Version 1.0.4.0 • Released on: 2020-07-22 18:20:00
    Download
    Description:

    (Re)Moved pythonlib annotation definition in JythonForIcy plugin (Stephane)

  • Version 1.0.3.0 • Released on: 2020-02-20 17:30:00
    Download
    Description:

    Reverted to previous version to fix Aleix issue.

  • Version 1.0.2.0 • Released on: 2020-02-20 17:15:00
    Download
    Description:

    We can revert now the charset encoding stuff as as we reverted the jython library version

  • Version 1.0.1.0 • Released on: 2020-02-11 18:00:00
    Download
    Description:

    Fixed annoying message about not supported Charset on Icy start.

  • Version 1.0.0.0 • Released on: 2020-01-09 12:00:00
    Download
    Description:

    Moved pythonlib annotation definition in JythonForIcy plugin (Stephane)

  • Version 0.7.0.0 • Released on: 2013-12-09 16:51:41
    Download
    Description:

    Solve leaks that would cause out-of-memory errors when reloading plugins (after a Plugin update for example).

  • Version 0.6.0.0 • Released on: 2013-12-03 15:50:56
    Download
    Description:

    - Fix path in GUI under Windows (mixed separators)

  • Version 0.5.0.0 • Released on: 2013-11-27 15:14:51
    Download
    Description:

    - Performance improvement (avoid using a Python interpreter to do the extraction, simply use PySystemState).

  • Version 0.4.0.0 • Released on: 2013-11-21 10:45:30
    Download
    Description:

    Improve the text explaining what this plugin does, and some additional information about the customization of the embedded Python inside Icy.

  • Version 0.3.0.0 • Released on: 2013-11-19 17:01:00
    Download
    Description:

    - Do the work in init() synchronously. Fix an error about duplicate classes found in some cases.

    - Properly call cleanup() for the PythonInterpreter. This fixes a PermGenSpace errors when repeatedly refreshing the plugin list.

  • Version 0.2.0.0 • Released on: 2013-11-18 13:52:50
    Download
    Description:

    - Fix for unavailability of the "site" module at first run.

  • Version 0.1.0.0 • Released on: 2013-11-18 11:51:07
    Download
    Description:

    Update version and kernel dependency.

  • Version 0.0.1.0 • Released on: 2013-11-18 11:46:43
    Download