Widget PhasePlane
Source code: https://github.com/the-virtual-brain/tvb-widgets
Immediate testing: https://lab.ch.ebrains.eu/user/teodoramisan/lab/workspaces/auto-3/tree/shared/TVB%20Widgets/REPO/tvb-widgets/notebooks/PhasePlane.ipynb
Purpose
It is a Jupyter Widget intended for the visualization of the interactive phase-plane.
It provides sliders for setting:
The value of all parameters of the Model.
The extent of the axes.
A fixed value for the state-variables which aren't currently selected.
The noise strength, if a stochastic integrator is specified.
and dropdown lists for selecting:
Which state-variables to show on each axis.
Which mode to show, if the Model has them.
Entering the coordinates in the X,Y Coordinate Boxes will generate a sample
trajectory, originating from the coordinates entered.
Inputs
Phase-Plane viewer will be represented in the beginning based on the parameters that it receives:
- Model (Generic2dOscillator, Epileptor, Hopfield, etc.)
- Integrator (HeunDeterministic, HeunStochastic, Identity, etc.)
Requirements and installation
Before installing the tvb-widgets library containing the PhasePlane widget, the following python libraries and Jupyter extensions should be installed:
- Libraries:
- ipympl
- Extensions:
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-matplotlib
Then, to install the tvb-widgets library, just type:
pip install tvb-widgets