INTViewer uses Jython as Python engine and as a result is not natively compatible with C-Python libraries. However, there is a work-around available. In this example we use the open source library execnet to access the Enthought API from INTViewer.
Optional: skip the 2. Download Jython and 3. Download execnet steps by downloading the Lib.zip file at the bottom of the page, then proceed to 4. Configure INTViewer.
First download EPD Free or make sure a version of Enthought is installed. Tested with EDP Free v 7.3-2.
After those components are downloaded they must be added to INTViewer as follows.
Download the 3 Python script files at the bottom of this page.
We assume they are stored in C:\MyScripts, as shown below:
Open new Command Prompt/Terminal/Shell, navigate to C:\MyScripts and type python startserver.py
Open INTViewer, open a new Python Terminal and type execfile("C:\MyScripts\connectserver.py")
Note: You only need to launch the "connectserver.py" script once per INTViewer session.
Launch the built-in Enthought "chaco" demo by typing execfile("C:\MyScripts\chacodemo.py")
To exchange data between INTViewer and Enthought, use this example.