SNT: Python Notebooks

Revision as of 19:07, 11 April 2019 by Carshadi (talk | contribs) (Getting Started)

Python Notebooks

Direct access to the SNT API from the Python programming language is made possible with the pyimagej module. This enables full integration between SNT and any library in the Python ecosystem.

Getting Started

To initialize Fiji from Python:

import imagej
ij = imagej.init('sc.fiji:fiji')

Then, import the SNT classes you will need. For example, to download a neuron reconstruction from the MouseLight database, you would import the MouseLightLoader class:

MouseLightLoader = autoclass('')