canopy

Column widths with TabularAdapters?

牧云@^-^@ 提交于 2019-12-11 03:19:19
问题 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 suggestions? 回答1: One way to control the widths of the columns is to override the get_width() method of the TabularArrayAdapter . For example, import numpy as np from traits.api import HasTraits, Array from traitsui.api import View, Item,

ImportError: No module named site VIM and Enthought canopy

有些话、适合烂在心里 提交于 2019-12-11 01:48:31
问题 I was using vim and python perfectly fine till I upgrade to Maverick. Now I have a similar issue as here. When I remove remove canopy path from bash_profile and use default python path , vim works fine, otherwise I am getting the above error. You can also see me report on jedi-vim here UPDATE: Also it seems my default python path is no longer in /Library/Frameworks/Python.framework/Versions/2.7/bin $ which python /usr/bin/python 回答1: For anyone encountering this issue I resolved the problem

IPython buffer and pagination in Enthought Canopy

若如初见. 提交于 2019-12-10 10:53:22
问题 I'm using Enthought's beta distribution of Python Canopy 0.9.1 on Windows 7. How do I increase the size of my IPython buffer. Also how do I pipe the output of a command through a paginator; output is currently unpaginated. If existing answers like How to increase the ipython qtconsole scrollback buffer limit or How to use Pipe in ipython will work, I don't know how to apply them to Windows. Thank you! 回答1: There's currently no preference or config option to increase the buffer limit currently

pyinstaller error: cannot find scipy (No module named _ufuncs_cxx)

不羁的心 提交于 2019-12-10 10:29:47
问题 I am using pyinstaller to convert python script into a binary in Ubuntu (14.04). I use Canopy (Enthought) to manage all python libraries. The code uses networkx, numpy, and scipy. Here is my spec file: # -*- mode: python -*- a = Analysis(['main_test.py'], pathex=['/home/sean/Desktop/prog',], hiddenimports=[], hookspath=None, runtime_hooks=None) pyz = PYZ(a.pure) exe = EXE(pyz, a.scripts, exclude_binaries=True, name='main_test', debug=False, strip=None, upx=True, console=True ) coll = COLLECT

Install 32 bit Canopy on Win 7, 32-bit machine fails

混江龙づ霸主 提交于 2019-12-08 10:48:59
问题 I'm trying to install Canopy (canopy-1.1.0-win-32.msi) on a 32 bit windows machine. The install appears to work fine, but when I launch any of the tools, nothing happens. I can open a command line and run canopy_cli.exe which I found and it claims that I used the wrong installer. I've done it twice. It is a 32-bit Dell Inspiron. I've removed all Python related content from the system to try to get to a clean base. Ideas? Thx, --Don 回答1: Existing PYTHONHOME and/or PYTHONPATH environment

Enthought Canopy Package Manager got stuck on MacOs High Sierra

…衆ロ難τιáo~ 提交于 2019-12-08 09:12:16
问题 I tried to update my python packages by using the feature: update all of the Enthought Canopy Package Manager. After I started to update it got frozen at some point. This is what I see: As documentation writes here in cases when an update is in progress one should not close the Package Manager window. What should I do in this case. I can't find any solution after some googling. Any help is highly appreciated! 回答1: : Force-close Canopy If you are not already running the current version of

Multiple Kernels using Enthought Canopy (python)

对着背影说爱祢 提交于 2019-12-08 08:57:47
问题 I'm using Enthought Canopy to run my python code. On one computer I want to run 3 different python codes, all completely independently (for 3 different instruments), simultaneously. I seem to only be able to run one code at a time in Canopy with one kernel. How do I run more at the same time? I have read in a thread about using ipython qtconsole, but I don't know what this is. I can't even find this file on my pc. Can anyone step me through the process of how to get these codes all running on

Enthought - Canopy Express Installation Problems (Windows 7 x64)

跟風遠走 提交于 2019-12-08 08:32:28
问题 I am having difficulties installing the Enthought Canopy Express program. I have tried both the x64 and x86 versions. My login is normal alpha characters only (as goes for the hostname). I have also tried installing under the local admin account (my account has admin rights as well). The installer runs through it's normal motions. I have tried installing for my account only, and for all users. The environment setup is where it hangs up (I have tried clearing the PATH variable setup as it had

Matplotlib import error ft2font

拈花ヽ惹草 提交于 2019-12-08 03:43:45
问题 I have Python 2.7.6 installed under Canopy on a 64 bit Mac with Ipython version 2.1.0. This is a really odd problem and I'm not sure if it is a path file problem. Whenever I import matplotlib.pyplot (not just matplotlib), I receive the following error: In [2]: import matplotlib.pyplot as plt --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-2-eff513f636fd> in <module>() ----> 1 import matplotlib.pyplot as

How can I use Pyqt with Enthought Canopy

和自甴很熟 提交于 2019-12-08 02:27:30
问题 I had EPD installed and am giving Canopy (Windows 7 64-bit, Academic license) a go. When I first started Canopy, nothing happened (no GUI, no error message) and I realized this is because I had QT_API set to pyqt. Changing qt_api to pyside allows me to start Canopy. After doing this I have checked that pyqt is installed through the Canopy package manager. However Canopy refuses to start with QT_API set to pyqt. How can I fix this? I have a big project with everything in pyqt, so I want to use