viewer
ngtools.local.viewer
Local neuroglancer instance with a shell-like interface.
OSMixin
LocalNeuroglancer
Bases:
A local instance of neuroglancer that can launch its own local fileserver.
It also comes with a shell-like interface that allows loading, unloading, applying transforms, etc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
port
|
|
Port to use. |
0
|
ip
|
|
IP to use. |
'localhost'
|
token
|
|
Unique id for the instance. |
1
|
fileserver
|
|
Whether to run a local fileserver. If an int, should be the port to use. |
True
|
debug
|
|
Print full trace when an error is encountered. |
required |
txn
Context manager that returns the underlying neuroglancer state. Transactions are written into the viewer at exit.
scene
Context manager that returns the underlying state as a Scene.
It writes all changes to the scene back into the state at exit.
help
Display help.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action
|
|
Action for which to display help |
None
|
action
Decorate a neuroglancer action.
These actions can thereby be triggered by argparse.