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
44
votes
10 answers

sklearn OMP: Error #15 ("Initializing libiomp5md.dll, but found mk2iomp5md.dll already initialized.") when fitting models

I have recently uninstalled a nicely working copy of Enthought Canopy 32-bit and installed Canopy version 1.1.0 (64 bit). When I try to use sklearn to fit a model my kernel crashes, and I get the following error: The kernel (user Python…
ADJ
  • 4,892
  • 10
  • 50
  • 83
22
votes
7 answers

Folium map not displaying

Running on canopy version 1.5.5.3123 With; Folium Version: 0.1.2, Build: 1 The following code; import folium import pandas as pd LDN_COORDINATES = (51.5074, 0.1278) from IPython.display import HTML import shapefile #create empty map zoomed in on…
mapping dom
  • 1,737
  • 4
  • 27
  • 50
17
votes
3 answers

Save the "Out[]" table of a pandas dataframe as a figure

This may seem to be a useless feature but it would be very helpful for me. I would like to save the output I get inside Canopy IDE. I would not think this is specific to Canopy but for the sake of clarity that is what I use. For example, my console…
Keith
  • 4,646
  • 7
  • 43
  • 72
15
votes
1 answer

How we can use iter_rows() in Python openpyxl package?

I'm using openpyxl package in Python(Canopy) to use excel files. We have this tutorial in this link : LINK you can also use the openpyxl.worksheet.Worksheet.iter_rows() method: >>> tuple(ws.iter_rows('A1:C2')) ((, ,…
Eghbal
  • 3,892
  • 13
  • 51
  • 112
13
votes
3 answers

Matplotlib fonts in Enthought Canopy

I am using the matplotlib library inside Canopy, and the specific function is xkcd(). This function uses a specific font to plot charts. The font is Comic Sans MS, which if not present, should be…
Luis Miguel
  • 5,057
  • 8
  • 42
  • 75
12
votes
1 answer

Error: Line magic function

I'm trying to read a file using python and I keep getting this error ERROR: Line magic function `%user_vars` not found. My code is very basic just names = read_csv('Combined data.csv') names.head() I get this for anytime I try to read or open a…
Rima
  • 299
  • 2
  • 4
  • 10
11
votes
2 answers

How can I send a byte array to a serial port using Python?

I am working on an application which requires the sending of a byte array to a serial port, using the pyserial module. I have been successfully running code to do this in canopy: import serial ser = serial.Serial('/dev/ttyACM0', 9600,…
W. Stine
  • 111
  • 1
  • 1
  • 3
11
votes
3 answers

Python 3 in Enthought Canopy

How to use Python 3 in Canopy Enthought? It has the option on the bottom to select Python 3, but this does not change anything when we use: print(sys.version) 2.7.3 | 32-bit | (default, Mar 25 2013, 15:38:39) [MSC v.1500 32 bit (Intel)]
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
10
votes
1 answer

HTML not rendering properly with Canopy 1.7.1.3323 / IPython 4.1.2

I've just upgraded to Canopy 1.7.1; I think this problem stems from the change in IPython version from 2.4.1 to 4.1.2. The issue I have is that calling a DataFrame object in Python seems to use the __print__ method, i.e. there's no difference…
Ken Wei
  • 3,020
  • 1
  • 10
  • 30
9
votes
2 answers

Deleting variable does not erase its memory from RAM memory

I am using Python (Canopy) extensively for Earth science application. Because my application is memory consuming, I am trying find way to erase variable that I don't need any more in my programs, I tried to use del command to erase the variable…
Kernel
  • 591
  • 12
  • 23
9
votes
1 answer

How should I pass a matplotlib object through a function; as Axis, Axes or Figure?

Sorry in advance if this is a little long winded but if I cut it down too much the problem is lost. I am trying to make a module on top of pandas and matplotlib which will give me the ability to make profile plots and profile matrices analogous to…
Keith
  • 4,646
  • 7
  • 43
  • 72
8
votes
2 answers

How to create multiple histograms on separate graphs with matplotlib?

I have 5 data sets from which I want to create 5 separate histograms. At the moment they are all going on one graph. How can I change this so that it produces two separate graphs? For simplicity, in my example below I am showing just two…
Freya Lumb
  • 81
  • 1
  • 1
  • 3
8
votes
1 answer

Upgrade version of scikit-learn included in Enthought Canopy distribution

I have EPD 7.3.1 installed (nowadays called Enthought Canopy), which comes with scikit-learn v 0.11. I am running Ubuntu 12.04. I need to install v 0.12 of scikit-learn. The scikit-learn doc says clone the repository, add the scikit-learn directory…
scharfmn
  • 3,561
  • 7
  • 38
  • 53
7
votes
5 answers

dateutil 2.5.0 is the minimum required version

I'm running the jupyter notebook (Enthought Canopy python distribution 2.7) on Mac OSX (v 10.13.6). When I try to import pandas (import pandas as pd), I am getting the complaint: ImportError: dateutil 2.5.0 is the minimum required version. I have…
user1745564
  • 159
  • 1
  • 2
  • 8
7
votes
5 answers

AttributeError: 'module' object has no attribute 'cbook'

I am trying to run a simple code and I have all the dependencies for matplotlib and numpy installed in my Canopy. Still I am getting error. import cv2 import numpy as np import matplotlib.pyplot as plt x = cv2.imread('jay.jpg') …
meJayu
  • 85
  • 1
  • 2
  • 6
1
2 3
35 36