NEURON
nrnpy.cpp File Reference
#include <../../nrnconf.h>
#include <../nrnpython/nrnpython_config.h>
#include <stdio.h>
#include <stdlib.h>
#include <InterViews/resource.h>
#include "nrnoc2iv.h"
#include "classreg.h"
#include "nonvintblock.h"
#include "nrnmpi.h"
#include <algorithm>
#include <cctype>

Go to the source code of this file.

Functions

void nrnpython ()
 
char * hoc_back2forward (char *s)
 
char * hoc_forward2back (char *s)
 
int nrnpython_start (int)
 defined(NRNPYTHON_DYNAMICLOAD) More...
 
void nrnpython_reg_real ()
 
void nrnpython_real ()
 
static voidp_cons (Object *)
 
static void p_destruct (void *v)
 
void nrnpython_reg ()
 

Variables

int nrn_nopython
 
int nrnpy_nositeflag
 
char * nrnpy_pyexe
 
int nrn_is_python_extension
 
int * nrnpy_site_problem_p
 
int(* p_nrnpython_start )(int)
 
static void(* p_nrnpython_real )()
 
static void(* p_nrnpython_reg_real )()
 
char * nrnpy_pyhome
 
static Member_func p_members [] = {0, 0}
 

Function Documentation

◆ hoc_back2forward()

char* hoc_back2forward ( char *  s)

◆ hoc_forward2back()

char* hoc_forward2back ( char *  s)

◆ nrnpython()

void nrnpython ( )

Definition at line 71 of file nrnpy.cpp.

◆ nrnpython_real()

void nrnpython_real ( )

Definition at line 251 of file nrnpython.cpp.

◆ nrnpython_reg()

void nrnpython_reg ( )

Definition at line 223 of file nrnpy.cpp.

◆ nrnpython_reg_real()

void nrnpython_reg_real ( )

Definition at line 138 of file nrnpy_p2h.cpp.

◆ nrnpython_start()

int nrnpython_start ( int  b)

defined(NRNPYTHON_DYNAMICLOAD)

Start the Python interpreter.

  • b Mode of operation, can be 0 (finalize), 1 (initialize), or 2 (execute commands/scripts)
    Returns
    0 on success, non-zero on error
    There is an internal state variable that stores whether or not Python has been initialized. Mode 1 only has an effect if Python is not initialized, while the other modes only take effect if Python is already initialized.

defined(NRNPYTHON_DYNAMICLOAD)

  • b Mode of operation, can be 0 (finalize), 1 (initialize), or 2 (execute commands/scripts)
    Returns
    0 on success, non-zero on error
    There is an internal state variable that stores whether or not Python has been initialized. Mode 1 only has an effect if Python is not initialized, while the other modes only take effect if Python is already initialized.

Definition at line 161 of file nrnpython.cpp.

◆ p_cons()

static void* p_cons ( Object )
static

Definition at line 82 of file nrnpy.cpp.

◆ p_destruct()

static void p_destruct ( void v)
static

Definition at line 85 of file nrnpy.cpp.

Variable Documentation

◆ nrn_is_python_extension

int nrn_is_python_extension
extern

Definition at line 842 of file fileio.cpp.

◆ nrn_nopython

int nrn_nopython
extern

◆ nrnpy_nositeflag

int nrnpy_nositeflag
extern

Definition at line 183 of file ivocmain.cpp.

◆ nrnpy_pyexe

char* nrnpy_pyexe
extern

◆ nrnpy_pyhome

char* nrnpy_pyhome

Definition at line 69 of file nrnpy.cpp.

◆ nrnpy_site_problem_p

int* nrnpy_site_problem_p

Definition at line 23 of file nrnpy.cpp.

◆ p_members

Member_func p_members[] = {0, 0}
static

Definition at line 86 of file nrnpy.cpp.

◆ p_nrnpython_real

void(* p_nrnpython_real) () ( )
static

Definition at line 26 of file nrnpy.cpp.

◆ p_nrnpython_reg_real

void(* p_nrnpython_reg_real) () ( )
static

Definition at line 27 of file nrnpy.cpp.

◆ p_nrnpython_start

int(* p_nrnpython_start) (int) ( int  )
extern