You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/05-Convenience-methods-of-PyImageJ.ipynb
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,31 @@
129
129
"source": [
130
130
"Note the warnings! We're currently in headless mode. The many legacy ImageJ functions operate limitedly or not at all in headless mode. For example the `RoiManager` is not functional in a true headless enviornment."
131
131
]
132
+
},
133
+
{
134
+
"cell_type": "markdown",
135
+
"metadata": {},
136
+
"source": [
137
+
"## 5.2 Register functions to start with ImageJ\n",
138
+
"\n",
139
+
"Functions can be executed during ImageJ's initialization routine by registering the functions with PyImageJ's callback mechanism `when_imagej_starts()`. This is particularly useful for macOS users in `gui` mode, allowing functions to be called before the Python [REPL/interpreter](https://docs.python.org/3/tutorial/interpreter.html) is [blocked](Initialization.md/#gui-mode).\n",
140
+
"\n",
141
+
"The following example uses `when_imagej_starts()` callback display a to `uint16` 2D NumPy array it with ImageJ's viewer, print it's dimensions (_i.e._ shape) and open the `RoiManager` while ImageJ initializes.\n",
0 commit comments