Title: Unclear how to initialize pyimagej in python scripts · Issue #12 · scijava/scripting-python · GitHub
Open Graph Title: Unclear how to initialize pyimagej in python scripts · Issue #12 · scijava/scripting-python
X Title: Unclear how to initialize pyimagej in python scripts · Issue #12 · scijava/scripting-python
Description: 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 ins...
Open Graph Description: 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. Presumab...
X Description: 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. Pres...
Opengraph URL: https://github.com/scijava/scripting-python/issues/12
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unclear how to initialize pyimagej in python scripts","articleBody":"In the Fiji script editor, the simple script:\n```\nimport imagej\nij = imagej.init()\n\nprint(ij.getVersion())\n```\nproduces output: `2.16.0/Inactive`\n\nI'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.\n\nAlso, 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.. ","author":{"url":"https://github.com/hinerm","@type":"Person","name":"hinerm"},"datePublished":"2025-08-23T19:14:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/12/scripting-python/issues/12"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9e0a3d3e-4818-f970-13c9-ecc42762b716 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0E8:2CC2DB:54F3F0:6EDF39:696ED26A |
| html-safe-nonce | e1ced9de5960b854ce0579e2143f8baa095b284066b3dd8ae89e0680b374559c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEU4OjJDQzJEQjo1NEYzRjA6NkVERjM5OjY5NkVEMjZBIiwidmlzaXRvcl9pZCI6IjM0MjIzMjkwMzY3MDcxMjM4MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a24247c3de1be1d32bbbea89f058c929fdf40c2f8b25cf92497ab2a13f4ca921 |
| hovercard-subject-tag | issue:3348675971 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scripting-python/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/391643550c64b09a17d615f9c0bac2c88c1146bafd46c44dba0b5e9c10b295f3/scijava/scripting-python/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/391643550c64b09a17d615f9c0bac2c88c1146bafd46c44dba0b5e9c10b295f3/scijava/scripting-python/issues/12 |
| og:image:alt | 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. Presumab... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hinerm |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scripting-python git https://github.com/scijava/scripting-python.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 439661642 |
| octolytics-dimension-repository_nwo | scijava/scripting-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 439661642 |
| octolytics-dimension-repository_network_root_nwo | scijava/scripting-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width