canopy

dateutil 2.5.0 is the minimum required version

时光毁灭记忆、已成空白 提交于 2021-02-06 11:21:27
问题 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 these package versions: Canopy version 2.1.3.3542 (64 bit) jupyter version 1.0.0-25 pandas version 0.23.1-1 python_dateutil version 2.6.0-1 I'm not getting this complaint when I run with the Canopy Editor so it must be some jupyter compatibility

Deleting variable does not erase its memory from RAM memory

本秂侑毒 提交于 2021-01-14 16:55:33
问题 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 memory, but I found that space used by Canopy is still the same. Any ideas about how to erase variable completely from the memory. thanks 回答1: You can't manually nuke an object from your memory in Python! The Python Garbage Collector (GC) will

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

独自空忆成欢 提交于 2020-04-07 12:49:06
问题 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 scatter_matrix. I am pretty sure my problem comes down to what object I need to return from Profile() so that I can handle Axes manipulation in Profile_Matrix(). Then the question is what to return form Profile_Matrix() so I can edit subplots. My

Canopy Clustering(Canopy聚类)

佐手、 提交于 2020-03-02 18:52:55
Canopy Clustering Canopy算法是基于Kmeans 算法的一种优化的聚类方法。 优化体现在: 1.前期能通过一些低性能的算法,快速的获取聚类中心 2.分好的每个聚类内部在进行k-means计算(不同聚类之间不进行相似度计算) 实现原理:(借助网上的一张截图) 算法步骤:   ( 1 ) 将数据集向量化,然后放到list集合中,同时设定 两个距离阈(yu)值:T1和T2   ( 2 )循环从list中去取一个,作为一个聚类中心,放到centerlist中,并从list中移除该点   ( 3 )循环从centerlist中 比较 与周围的点于阈(yu)值之间的关系,小于最小T1阈值,说明两个值相似,放到一个聚类中,并从list中移除;如果大于最大阈值T2,那么就单独作为一个聚类中心,并从list中移除;否则在T1和T2之间就不分别加到各个聚类中心去,但依然保留在list中   ( 4 )迭代 2~3 步直至 list中元素为null ,算法结束。 伪代码:(借鉴于炼数成金) Canopy 算法的优缺点: 1.不需要事先指定k值(即clustering的个数) 2.精度较低,但其速度上有很大的优势 3.前期可以使用Canopy聚类先对数据进行“粗”聚类,得到k值后再使用K-means进行进一步的“细”聚类 来源: oschina 链接: https://my

How to test if Canopy editor is open

青春壹個敷衍的年華 提交于 2020-01-14 02:50:09
问题 Is there a way to test if the Canopy editor is open/running that would work across platforms? On Mac/Unix, it seems to work to check for canopy.app.main in the output of "ps aux", but that is not possible on most Windows. I found a tasklist command that is similar, but it appears Canopy runs as a generic pythonw program. 回答1: At present, on all OSes, if Canopy is running, then there will be a text file process.lck in the configuration/preferences directory. The second line of the file is the

Multiple kernels in Enthought Canopy

谁都会走 提交于 2020-01-11 06:32:33
问题 I previously worked with the EPD Python distribution using its Qt-console, where one of the most useful features was easily having multiple kernels in multiple tabs, when doing several calculations simultaneously. I recently got the "new" Enthought Canopy, which somehow tries to emulate MatLab, which might not be bad perse. Here comes the problem: How do I get multiple tabs with separated kernels with Canopy? For completeness, I am running Canopy 1.1.0 on Ubuntu-Gnome 13.04. 回答1: The Canopy

Installing Python modules with Anaconda or Canopy

家住魔仙堡 提交于 2020-01-04 14:06:33
问题 I have played around with Python a little but never have I had to install my own packages. I am currently trying to write a program that reads in 'tiff' files so I'm trying to install the 'libtiff' package and I'm having a nightmare! First, I was using the Anaconda distribution and the phrase 'conda install libtiff' which would tell me the install was successful. However then I was never able to find libtiff in the Spyder IDE or ipython console. Having used Canopy in the past, I uninstalled

Enthought canopy not running

允我心安 提交于 2020-01-03 04:59:04
问题 I installed Enthought Canopy onto my 64 bit windows box (Windows 7). Installed "successfully" except Canopy would not run at all from start menu. I tried running it from cmd and it still would not run. I checked c:\Users\user...Local and Roaming and found no error logs. I tried the Windows Vista and above with User Access Control (UAC) enabled, the msi installer trick but Canopy still didn't run either from start menu or cmd. There seems no help on this on the Enthought website, has anyone

How to install CVXOPT with Enthought python (Canopy)

a 夏天 提交于 2020-01-01 12:06:27
问题 Before I start, let me put alternative titles for this post: How to compile CVXOPT with Intel MKL ? How to change __init__.py in CVXOPT to compile with Intel MKL ? Let me explain the issue. I am trying to install pystruct with Enthought python because Enthought python provides significant speed up in comparison to python in the Ubuntu package manager. The speed-up are mostly due to compiling back-end linear algebra libraries with Intel MKL libraries. I have to say that CVXOPT and pystruc

Enthought Canopy Mayavi font size bug

Deadly 提交于 2019-12-29 08:43:07
问题 The font size setting in Enthough Canopy Mayavi mlab appears to be broken. Neither the command: mlab.axes.label_text_property.font_size = 12 (e.g.) nor the direct menu font size command (advanced settings) works. I have logged a bug report with Enthought, but it looks like a more general Mayavi bug, see Does Mayavi "Font Size" text property work? 回答1: As you say this is a bug that has to do with the translation between the mayavi layer and the vtk layer. But for now you could use this