canopy

got “libatk-1.0.so.0: undefined symbol” when I tried ipython --pylab in Ubuntu 13.10

微笑、不失礼 提交于 2019-12-23 01:58:26
问题 I am currently using Ubuntu 13.10 and applied all the system updates. I have installed the Enthought Canopy (Version: 1.1.1.1452). And today when I tried to plot, I got nothing. After googling, I have run 'ipython --pylab' in command line but got the following message: Matplotlib backend_wx and backend_wxagg require wxPython >=2.8 I could get into the interactive ipython shell but I still couldn't plot. Then I follow the tips from user forum and I tried 'import wx' and got: /usr/lib/x86_64

Getting PySide Hello App to run under Canopy

青春壹個敷衍的年華 提交于 2019-12-23 01:54:56
问题 A Canopy user here learning about PySide. When I run the demo code below, QApplication complains the event loop is already running.' import sys from PySide.QtCore import * from PySide.QtGui import * # Create a Qt application #app = QApplication(sys.argv) #QApplication complains an instance already exists app = QApplication.instance() #So we just ask for the instance. #app.aboutToQuit.connect(app.deleteLater) # Create a Label and show it label = QLabel("Hello World") label.show() # Enter Qt

Python Canopy NumPy: Running the code by pressing “Play” doesn't give the same result as copying and pasting the code in the command line

こ雲淡風輕ζ 提交于 2019-12-23 01:41:42
问题 I'm running Enthought Canopy 1.4.1 64 bit for a year now. For some reason, a code I just wrote produces completely different charts (using matplotlib) when pressing the "Play" button, vs. copying and pasting the code into the command line and pressing Enter. In particular, the following line produces two different results: w1 = array(dot(matrix(C).I,R - 0.03)/sum(dot(matrix(C).I,R - 0.03)))[0] When pressing the Play, I get: w1 Out[7]: array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) When

Run scripts simultaniously in Canopy

五迷三道 提交于 2019-12-22 01:06:39
问题 This is an update request on this 4 year old question. I have been using Canopy for many years but one draw back is that I can't debug a different project while another is running. I often run code that takes about an hour so it would be ideal to be able to run one project while working on another. In short, I would like to use multiple kernels integrated with the IDE. Perhaps as many as three as I have four cores. Canopy is my default an only python on my windows machine. I am using Canopy 2

MemoryError with python/pandas and large left outer joins

空扰寡人 提交于 2019-12-21 21:34:19
问题 I'm fairly new to both Python and Pandas, and trying to figure out the fastest way to execute a mammoth left outer join between a left dataset with roughly 11 million rows and a right dataset with ~160K rows and four columns. It should be a many-to-one situation but I'd like the join to not kick out an error if there's a duplicate row on the right side. I'm using Canopy Express on a Windows 7 64-bit system with 8 Gb RAM, and I'm pretty much stuck with that. Here's a model of the code I've put

Enthought Canopy 1.1 giving error icui18n: cannot open shared object file: No such file or directory

只谈情不闲聊 提交于 2019-12-18 06:56:51
问题 I have tried to get enthought canopy and follow the procedure. However, when I tried to run ./canopy , it gave this error: Unable to load library icui18n "Cannot load library icui18n: (icui18n: cannot open shared object file: No such file or directory)". I cannot sudo because I am using the university's supercomputing account, no permission to do so. Any advice? 回答1: You just need a copy of ICU installed on the system you are trying to run canopy on. You can do this by either installing it

sys.maxint returns a value corresponding to a 32 bit system even though I am using a 64 bit

巧了我就是萌 提交于 2019-12-13 19:17:44
问题 I am not very knowledgeable about system architecture, and have just started learning Python. In one of the tutorial videos it was mentioned that running sys.maxint in the interpreter will return the biggest integer that is available to you. It was also mentioned that 2147483647 is the integer that corresponds to a 32 bit system. That's is the integer that I am being returned when I run sys.maxint. I am using Enthought Canopy (64 bit) on a 64 bit OS. Windows 8, to be precise. Is there any way

wx.lib.activex fails to import using Enthought Canopy and EPD

隐身守侯 提交于 2019-12-13 05:17:53
问题 import wx.lib.activex fails with the supplied version of wx in Enthought Canopy or EPD on Windows. How can I get the activex container to work with the Enthought Python Distributions? 回答1: First of all, it's necessary to install comtypes, which is a dependency not available through the Enthought package manager. The more serious problem however, is that Enthought seem to have erroneously omitted the two myole4ax.* files which are necessary to use the activex container in wx Python. You can

Running winpdb from within Enthought Canopy on MacOS 10.9.2

时光总嘲笑我的痴心妄想 提交于 2019-12-12 09:15:38
问题 I have Enthought Canopy 1.4 installed on MacOS 10.9.2. Trying to run the winpdb debugger results in the following message: This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac. As a workaround, I tried creating a shell script run.sh , containing PYVER=2.7 PYTHON=/System/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python$PYVER # find the root of the virtualenv, it should be the parent

Python keras neural network (Theano) package returns an error about data dimensions

怎甘沉沦 提交于 2019-12-12 08:16:19
问题 I have this code: import numpy as np from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation from keras.optimizers import SGD from sklearn import datasets import theano iris = datasets.load_iris() X = iris.data[:,0:3] # we only take the first two features. Y = iris.target X = X.astype(theano.config.floatX) Y = Y.astype(theano.config.floatX) model = Sequential() model.add(Dense(150, 1, init='uniform')) model.add(Activation('tanh')) model.add(Dropout(0.5))