Skip to content

Unclear how to initialize pyimagej in python scripts #12

@hinerm

Description

@hinerm

In the Fiji script editor, the simple script:

import imagej
ij = imagej.init()

print(ij.getVersion())

produces output: 2.16.0/Inactive

I'm not sure if I should be initializing differently. Presumably I don't need to point to my local install? But I'm not sure how to get the legacy service active.

Also, isn't it problematic to be running imagej.init repeatedly? My intuition is that we want to initialize pyimagej once when launching in python mode, ensure it is done properly, make ij available for all, and kill other attempts to call init in the script editor..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions