Skip to main content

Run NeuroExplorer Python scripts and read and write .nex and .nex5 files in any Python development environment (VS Code, Spyder, etc.).

Project description

nex-Python-package

Python package for running NeuroExplorer Python scripts an any Python development environment (VS Code, Spyder, etc.)

Description

Provides a simple way to run Python scripts that control NeuroExplorer (open data file, get file data, run analysis, save results, etc.) in any Python IDE.

See NeuroExplorer Python Scripting Documentation for detailed information about Python scripting in NeuroExplorer.

To install the package, open Windows Command Prompt, type pip install -U nex and press Enter.

If you are using Anaconda:

  • Type Anaconda Prompt in the Windows Search Bar, select Anaconda version and then click on it
  • Type pip install -U nex in Anaconda Prompt window and press Enter

After the package is installed, you can run NeuroExplorer Python scripts in any Python development environment.

For example, to run PSTH analysis saved in the template PerieventHistograms.ntp, run this Python code:

import nex
doc = nex.GetActiveDocument()
# run PSTH analysis saved in the template PerieventHistograms
nex.ApplyTemplate(doc, "PerieventHistograms")

The package also provides classes to read and write .nex and .nex5 data files.

import nex.nexfile
reader = nex.nexfile.Reader()
fileData = reader.ReadNexFile(r"C:\path\to\file.nex5")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nex-1.0.6-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file nex-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: nex-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for nex-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fc2b9f3b0b90767a182d05b3c2eefb89d1805a3d12601a8567776737fb010fe7
MD5 474def68a9ab5ae2576a1a54eb19544f
BLAKE2b-256 4e6556c26b55ed0e1c2bd957abad79c8325c73c13d6181171b388fb97b639a22

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page