(Shortest import: from brian2 import get_local_namespace)
from brian2 import get_local_namespace)
Get the surrounding namespace.