Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
Project: Testing 18.04
Path: neron-yale.ipynb
Views: 792Kernel: Python 3 (system-wide)
NEURON simulation environment
The NEURON simulation environment is used in laboratories and classrooms around the world for building and using computational models of neurons and networks of neurons.
https://www.neuron.yale.edu/neuron/
Kernel: Python 3 (system-wide)
CoCalc Setup
important unset DISPLAY
, otherwise gui is loading and neron crashes
In [1]:
Add the library location to the search path
In [2]:
In [3]:
'7.7.2'
In [4]:
In [5]:
soma { nseg=1 L=100 Ra=35.4
/*location 0 attached to cell 0*/
/* First segment only */
insert morphology { diam=500}
insert capacitance { cm=1}
}
1.0
In [6]:
soma
In [7]:
type(soma) = <class 'nrn.Section'>
type(soma(0.5)) =<class 'nrn.Segment'>
In [8]:
['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__next__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'e', 'g', 'i', 'is_ion', 'name', 'segment']
In [9]:
0.001
In [10]:
0.001
In [11]:
In [12]:
asyn.e = 0.0
asyn.gmax = 0.0
asyn.onset = 0.0
asyn.tau = 0.1
In [13]:
In [14]:
soma { nseg=1 L=100 Ra=35.4
/*location 0 attached to cell 0*/
/* First segment only */
insert morphology { diam=500}
insert capacitance { cm=1}
insert pas { g_pas=0.001 e_pas=-70}
insert AlphaSynapse { onset=20 tau=0.1 gmax=1 e=0}
}
1.0
In [15]:
Vector[1]
In [16]:
0.0
In [17]:
In [0]: