-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python libraries in neuron package #17914
Comments
@adevress would it be difficult to implement? Thanks for maintaining this (esoteric ;) ) package! |
Hi rqcy, No it should be doable and rather easy, I will add this in a future pull request. |
@obadz Can you assign this ticket to me ? thank you in advance. |
Hmmmm… apparently I can only assign to project members, sorry. I guess if anyone finds this issue they will know it's all yours. |
@obadz That's fine but that's wierd, I was thinking I'm automatically attached for anything related to a package I maintain. |
No it should be doable and rather easy, I will add this in a future pull request.
Thanks, that's really great!
Stefan
|
when you mean you want to use Python with Neuron, is then the base interpreter enough or do you also want to use additional modules? |
when you mean you want to use Python with Neuron, is then the base
interpreter enough or do you also want to use additional modules?
Hi,
I'm not sure what do you mean by “base interpreter” and “additional
modules”.
I usually start Python or IPython, and import required modules, e.g.:
import neuron
from neuron import h
import numpy as np
import pandas as pd
etc.
Stefan
|
I see, thanks for the example @rqcy . Certain applications have a built-in interpreter that can be used to write plugins, e.g. FreeCAD, in which case you might want to use additional modules, like numpy. But sometimes, you want to use the libraries offered by the program, like you seem to want to do with Neuron. If you want to use it like this, then it makes sense to make this package available as a Python library. @adevress I recommend making the |
…tion and minor fixes - Add support for python bindings - make neuron respect standard pythonpath prefix - force exec_prefix == prefix to respect standard nix file hierarchy - normalize indentation - propagate dependencies necessary for nrniv_makefile usage - Add support for darwin
Hi @FRidh I updated the pull request following your recommendation. You have now a standard neuron and neuron-mpi modules without python support. |
…and minor fixes - Add support for python bindings - make neuron respect standard pythonpath prefix - force exec_prefix == prefix to respect standard nix file hierarchy - normalize indentation - propagate dependencies necessary for nrniv_makefile usage - Add support for darwin
Great! Merged so closing this. |
Actually, the bindings don't work just yet. |
Issue description
The NEURON simulation environment is often scripted with Python instead of its native hoc interpreter. Adding Python to the
neuron
package would be very useful.The text was updated successfully, but these errors were encountered: