Questions tagged [canopy]

A Python-based tool for desktop application analysis and distribution of Python.

A Python-based tool for desktop application analysis and distribution of Python. Canopy provides an open and clear understandable environment for scientific research and calculations. Since the language is Python, their algorithms, scripts and programs will never be frozen in their own language. And with the analysis of desktop applications, data analysis, scripted scenarios, and building a more target-oriented applications.

Canopy was formerly known as the Enthought Python Distribution. It is a commercial product, but a free version is available (with fewer packages). Degree-granting institutions also qualify for a free academic license.

The product home page: https://www.enthought.com/products/canopy/

529 questions
2
votes
1 answer

Web-Scraping with Python on Canopy

I'm having trouble with this line of code in which I want to print the 4 stock prices for the companies listed. My issue is that, while there are no errors when I run it, the code only prints out empty brackets where the stock prices should go. This…
Kainesplain
  • 57
  • 1
  • 5
2
votes
0 answers

Enthought Canopy package manager upgrade/install error

I have installed v1.7.2.3327 and have been unable to get the Package Manager to update or install packages. It shows 11 Updates available, but none update correctly. I have also tried to install statsmodels but have encountered errors as well. I…
2
votes
2 answers

Canopy does not run code

I've installed Canopy and completed the environment setup. Unfortunately, nothing I input into the code editor gets printed onto the Python interpreter pane (e.g. I input print "hello world" and hit enter but nothing happens. Also, the Run > Run…
OctaviaLo
  • 1,268
  • 2
  • 21
  • 46
2
votes
2 answers

Diagonal matrix of consecutive numbers

I want to create a diagonal matrix below's the code in python 2.7 def diag(steps): ''' steps : a positive integer ''' matrix = [[0]*steps]*steps # matrix of the order step x step for i in range(steps + 1): matrix[i][i]…
Stetson
  • 23
  • 4
2
votes
1 answer

How to debug in Python: Why doesn't pdb descend into function call?

I've tracked down a bug in which io.open() should have been passed 'utf-8' instead of 'utf8'. Minimal executable code below. Why doesn't the IPython traceback indicate a line number, and why does pdb neither report that the error was with the…
Bennett Brown
  • 5,234
  • 1
  • 27
  • 35
2
votes
1 answer

How to integrate Enthought Canopy with SQL Server?

I am new to Python and using Enthought Canopy Express for learning purpose. As part of that I am looking for an option to connect Canopy Express with SQL Server. Couldn't find any materials. Please share methods for database connection for data…
2
votes
2 answers

Anaconda installation; getting it right the first time

I've been using Enthought Canopy as my python environment for about a year now. Canopy is great because it's dedicated terminal makes installing packages with the right dependencies a breeze using pip install. I am using Canopy to support my use of…
tmo
  • 1,393
  • 1
  • 17
  • 47
2
votes
3 answers

MemoryError with python/pandas and large left outer joins

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…
James T
  • 149
  • 2
  • 13
2
votes
1 answer

Unable to display Vincent sample maps; no suggested solutions work

This is the same question as each of these questions, but none of the suggested solutions are working for me. I'm trying to make a US State map in Python with the Vincent package, as shown in this tutorial. I'm using the Canopy editor. When I run…
ale19
  • 1,327
  • 7
  • 23
  • 38
2
votes
1 answer

Python Canopy: Is it possible to do word wrap in the editor?

I am using Canopy for editing and running files. But I am finding it difficult to take a look into more than 80 lines of code in it. Is it possible to enable word wrapping in Canopy Editor?
Anoop Toffy
  • 918
  • 1
  • 9
  • 22
2
votes
2 answers

How to access the Canopy terminal from the command line interface?

Lets say I wanted to add an external package to my python installation. If Canopy doesn't have it then you have to open up the GUI click tools and open the Canopy terminal and run pip install package which is fine and easy unless you don't have a…
salotz
  • 429
  • 4
  • 20
2
votes
1 answer

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

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 =…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
2
votes
0 answers

h5py not installing properly on canopy?

I programme in python and I use a OS X Yosemite version 10.10.2. I have installed h5py 2.5.0-1 in enthought canopy using its package manager. So, h5py 2.5.0-1 has appeared in my installed packages in canopy with a little green tick besides…
Danielle
  • 21
  • 2
2
votes
1 answer

Python time stamp does not print - open large txt

Code below open and loops over a 500 MB txt file. It's running for almost half hour now and the funny thing is it did not print the first 'time.gmtime()'. I restarted the Kernel a couple of times to check for problems but all seems fine. Why didn't…
BuckTurgidson
  • 289
  • 3
  • 8
  • 17
2
votes
1 answer

Column widths with TabularAdapters?

Using Enthought Canopy's TraitsUI, I'm using TabularAdapters to display some Arrays, but they always produce evenly proportioned column widths...I'd like to make some widths smaller than others, but haven't found any simple way yet...Anyone have any…
Steve76063
  • 317
  • 2
  • 10