Skip to content, Skip to search

Changes

SNT: Scripting

369 bytes added, 22:31, 9 December 2019
no edit summary
[[Category:SNT]][[Category:Neuroanatomy]][[Category:Scripting]]
{{SNTNavBar}}
 
==SNT API==
The full up-to-date SNT API can be found at [http://fiji.github.io/SNT/ http://fiji.github.io/SNT/]
==Script Templates==
==Installing pyimagej==
Follow the instructions given [https://github.com/imagej/pyimagej#installation here]
===Getting Started===
To initialize Fiji from Python with GUI capabilities:
<source lang="python">
</source>
===Advanced Examples===
The [https://github.com/fiji/Simple_Neurite_Tracer/tree/scijava/notebooks Notebooks] directory in the SNT [https://github.com/fiji/Simple_Neurite_Tracer GitHub repository] contains examples which are executable on [https://mybinder.readthedocs.io/en/latest/ Binder].
For example, to run the convex_hull notebook via [https://mybinder.org/ mybinder.org], follow this link: [https://mybinder.org/v2/gh/fiji/Simple_Neurite_Tracer/scijava?filepath=%2Fnotebooks%2Fconvex_hull.ipynb convex_hull.ipynb]
 
==Packaging Scripts with SNT==
To have your own scripts listed in the Script Editor's ''Templates'' menu, save them in the ''scripts'' directory while including ''SNT'' in the filename (e.g., C:\Users\user1\Desktop\Fiji.app\scripts\My_SNT_Script.py).
758
edits