enthought

Display of “Canopy” on command line

China☆狼群 提交于 2019-12-03 15:58:25
I have a basic terminal question. I just installed enthought's Canopy for Python on Snow Leopard, and (Canopy 64bit) continually shows up when I'm working on the command line. EX: (Canopy 64bit) Macbook~[username]$ I've tried editing my bashrc file, to no avail. bashrc currently has this: # System-wide .bashrc file for interactive bash(1) shells. if [ -z "$PS1" ]; then return fi PS1="Macbook~\u\$" # Make bash check its window size after a process completes shopt -s checkwinsize -- Is there any way to stop "(Canopy 64bit)" from displaying? It's in .bash_profile. But you'll probably have to log

Matplotlib - Force plot display and then return to main code

做~自己de王妃 提交于 2019-12-03 11:17:06
问题 This is a MWE of what I'm after, adapted from this question: from matplotlib.pyplot import plot, draw, show def make_plot(): plot([1,2,3]) draw() print 'continue computation' print('Do something before plotting.') # Now display plot in a window make_plot() answer = raw_input('Back to main and window visible? ') if answer == 'y': print('Excellent') else: print('Nope') show() What I want is: I call the function to make the plot, the plot window appears, and then I get to go back to the prompt

Threaded FFT in Enthought Python

余生长醉 提交于 2019-12-03 07:56:44
Fast Fourier Transforms (FFTs) in Numpy/SciPy are not threaded. Enthought Python is shipped with the Intel MKL numerical library, which is capable of threaded FFTs. How does one get access to these routines? The following code works for me with Enthought 7.3-1 (64-bit) on Windows 7 Ultimate 64-bit. I haven't benchmarked it but it certainly uses all cores at once rather than just one. from ctypes import * class Mkl_Fft: c_double_p = POINTER(c_double) def __init__(self,num_threads=8): self.dfti = cdll.LoadLibrary("mk2_rt.dll") self.dfti.MKL_Set_Num_Threads(num_threads) self.Create = self.dfti

Make sure numpy is using MKL library on mac pro

大憨熊 提交于 2019-12-03 05:01:26
I am using Enthought's Canopy/EPD version of python which ships with numpy linked against MKL. I am currently running a set of simulations in parallel (using PP) on both my work computer (Windows 7, Quad Core i5 @ 3.33 Ghz, 4 GB ram) and my home workstation (Mac Pro 3.1, Ubuntu 12.04, 2x Quad Core Xeon @ 2.8 Ghz, 6 GB ram). But when I benchmark my simulations, they run much quicker on the work computer (35 seconds per iteration vs. 60 on the mac pro). The problem is being perfectly balanced between cores (embarrassingly parallel problem), so I suspect there is an issue with the MKL library on

py2exe fails with pandas import

南楼画角 提交于 2019-12-02 11:27:35
问题 I have a python script that I want to make into an executable using py2exe. It fails when I try to import pandas (this is literally all I have in my example failing script): import pandas The traceback looks like: File "c:\users\***\appdata\local\enthought\canopy\user\lib\site_packages\py2exe\mf.py", line 724, in import_hook return Base.import_hook(self,name,caller,fromlist,level) RuntimeError: maximum recursion depth exceeded I suspect that the problem may have something to do with the

Error importing matplotlib.pyplot

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 10:37:07
When I run import matplotlib.pyplot as plt , I get the following error message: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-6f467123fe04> in <module>() ----> 1 import matplotlib.pyplot /Library/Python/2.7/site-packages/matplotlib/pyplot.py in <module>() 21 from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike 22 from matplotlib import docstring ---> 23 from matplotlib.figure import Figure, figaspect 24 from matplotlib.backend_bases import FigureCanvasBase 25 from matplotlib

pyside-rcc “dyld: Library not loaded:…”

寵の児 提交于 2019-12-02 06:54:58
I'm a python and Qt rookie and I have some problems running pyside-rcc (and pyrcc4). The problem is not the link to the executable but a library problem it seems. That I'm not a unix wizard, probably doesn't help either:) When I run $ pyside-rcc i get the following error dyld: Library not loaded: @rpath/lib/QtCore.framework/Versions/4/QtCore Referenced from: /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/pyside-rcc Reason: image not found Trace/BPT trap: 5 For $ pyrcc4 the error is similar but not exactly the same: dyld: Library not loaded: @rpath/lib/QtXml.framework/Versions/4

py2exe fails with pandas import

心已入冬 提交于 2019-12-02 06:32:16
I have a python script that I want to make into an executable using py2exe. It fails when I try to import pandas (this is literally all I have in my example failing script): import pandas The traceback looks like: File "c:\users\***\appdata\local\enthought\canopy\user\lib\site_packages\py2exe\mf.py", line 724, in import_hook return Base.import_hook(self,name,caller,fromlist,level) RuntimeError: maximum recursion depth exceeded I suspect that the problem may have something to do with the Canopy Python distribution, but I don't have an easy alternative to test. Here is my setup file: distutils

Installing Pygame on Mac into Enthought build

荒凉一梦 提交于 2019-12-02 04:22:13
There were a number of unanswered questions on installing Pygame on a Mac but I am going to ask my specific question here and hope for an answer. I have been having incredible difficulty installing Pygame onto my Mac. I use the Enthought version EPD 7.3-2 32 bit and it is my default framework so if I type python at the terminal prompt I get: $ python Enthought Python Distribution (EPD) free version -- www.enthought.com Version: 7.3-2 (32-bit) I have successfully installed additional modules to this version using Pip 1.2.1 with no issues. I have Xcode 4.5.2 installed on my machine but I get a

scipy with enthought canopy

戏子无情 提交于 2019-12-02 03:26:33
I am evaluating the Enthought package. I installed the 32bit canopy (downloaded from https://www.enthought.com/downloads/ ) in Ubuntu. $ sudo bash canopy-1.0.1-rh5-32.sh Upon testing I don't see scipy in /usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages : $ /usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/bin/python Enthought Canopy Python 2.7.3 | 32-bit | (default, Mar 25 2013, 15:45:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import scipy Traceback (most recent call last):