# Work with VND from a Python session / Jupyter notebook
# For VND 1.15a1 and up.
# On the shell command line, launch vnd and specify ZMQ communication with: 
vnd -zmq
# In Jupyter session:
import VND
# Create a selection using VND selection
mySel=VND.NeuronSel('soma x > 0')

# Create a graphical representation using VND selection
# The new represenation will appear in the 3D view and GUI
VND.add_rep(sel=mySel, color='red', style='soma', scaling='1.8', resolution="10", material='Opaque', show='True')

# Query attribute values for the neurons in your selection.
mySel.get(['x','node', 'model_name'])

# If communication trouble, try:
VND.restart_vnd_zmq()
# ... or restart the notebook Python kernel and
import VND

