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: github.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:1bb680c9-53f0-4c52-7ed6-5bd56da9ff3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2CC:2EB8B3:160B643:1EF1A52:696F49AA |
| html-safe-nonce | cc67aa075e4cd6280683da142dafe49df50f1583eb032c348bb90389b4a3eec1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkNDOjJFQjhCMzoxNjBCNjQzOjFFRjFBNTI6Njk2RjQ5QUEiLCJ2aXNpdG9yX2lkIjoiMjU2NDkyNjE0MDA3NjA1Njc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0b31c0fdcf0edcd015f49473d513709b9dd7f250b3ec82acdc4eacf66f7d1b2b |
| 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