Top Banner
Python + NEURON School of Brain Cells and Circuits Erice 2015 NINDS Michael Hines
30

Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Jul 04, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Python + NEURON

School of Brain Cells and CircuitsErice 2015

NINDS

Michael Hines

Page 2: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Installing ...

Page 3: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Installing on 64bit Windows 10 ...

Page 4: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Run the downloaded file

Page 5: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Install into selected destination folder

Page 6: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Useful if launching IPython.

Page 7: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Install NEURON

Page 8: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

NEURON installed

Page 9: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Test by double clicking ’NEURON Demo’

Page 10: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Selecting the ’Release’ button starts a demo.

Page 11: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

’Init&Run’ button runs the simulation

Page 12: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Exit by pressing ’NEURONMainMenu/File/Quit’

Page 13: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Test MPI by starting the bash terminal

Page 14: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

MPI works? mpiexec −n 2 nrniv −mpi test0.hoc

Page 15: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

... but Python not yet installed.

Page 16: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Anaconda is one of several excellent distributions.

Page 17: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

NEURON assumes Python 2.7

Page 18: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

It is a large distribution

Page 19: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Run.. No need to View

Page 20: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Looks good. Select ’Next’

Page 21: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

’Just me’ is fine

Page 22: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

I accepted the defaults.

Page 23: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Takes a fair amount of time to install...

Page 24: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Anaconda installed

Page 25: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

NEURON works with Python and MPI

Page 26: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

IPython can import neuron ...but..

Page 27: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

you might first need to copy all the dlls.

Page 28: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Conda can install many other packages.

Page 29: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

Mayavi is useful for 3−D graphics.

Page 30: Python + NEURON › ftp › hines › tmp › mswin_install.pdf · [Z] Register Anaconda as my default Python 2.7 This Will allon other programs, such as Python Tools for Visual Studio

from mayavi ... ; barchart(density)