canopy

Installing a package to Canopy

て烟熏妆下的殇ゞ 提交于 2019-12-07 14:18:08
问题 I'm really new to coding, programming, Python, and just computers in general, so I need some help with Canopy. I've been having pretty consistent troubles installing any packages to Canopy; some stuff is in the internal package manager,but whenever it isn't, it's really confusing. I guess I'll list a specific installation. I'm trying to install "pywcs" (link provided below) to my Win7 64-bit machine. I have Cygwin if that helps at all. I do not know how to go about this; the stuff I found

Matplotlib import error ft2font

笑着哭i 提交于 2019-12-06 16:31: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 plt /Users/rpatel/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/pyplot.py

Multiple Kernels using Enthought Canopy (python)

橙三吉。 提交于 2019-12-06 16:06:42
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 multiple kernels? 来源: https://stackoverflow.com/questions/34902261/multiple-kernels-using-enthought

How to test if Canopy editor is open

[亡魂溺海] 提交于 2019-12-06 15:19: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. 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 process ID. If Canopy was forced-stopped, the file will still be present even though Canopy is not running,

Customize syntax highlightin in canopy

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 09:32:06
问题 I just installed Enthought Canopy in a freshly (clean) installed Mac OS X Mountain Lion. So far, it seems to run stable and fast. My only problem is that I want to customize the syntax highlighting of both the editor and the console. There are no preferences to allow for that what I find quite strange because the embedded editor is just Editra, a highly customizable editor. I want to: Editor. As I was using Editra before, where can I place my old style file (.ess) for the syntax highlighting

IPython buffer and pagination in Enthought Canopy

二次信任 提交于 2019-12-06 07:45: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! There's currently no preference or config option to increase the buffer limit currently, but you could create a macro with the following code, and run it. def run(): code_task = get_active_task()

pip says modules “weren't found” to uninstall, but pip list shows them

梦想与她 提交于 2019-12-06 02:46:52
问题 With pip list I'm shown a listing of the installed modules, which includes scipy, numpy, and pandas. If I pip install -U... any of those, it checks it, sees its up-to-date, and returns to prompt. But if I pip uninstall pandas or any of the items I can see in the list, it says Can't uninstall numpy. No files were found to uninstall I installed everything that has to do with Python through Enthought's Canopy Stack. 回答1: Apparently there is some extra care required when installing/package

HTML not rendering properly with Canopy 1.7.1.3323 / IPython 4.1.2

有些话、适合烂在心里 提交于 2019-12-05 20:10:29
问题 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 between typing print df and df into the interpreter, and unfortunately this gives me an all-text output rather than the nice tables I normally get. So I get something that looks exactly like this when I call df rather than a table: date flag 1 20151102 0

Error: Line magic function

假如想象 提交于 2019-12-05 19:58:46
问题 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 file. I tried using this thread for help. ERROR: Line magic function `%matplotlib` not found I'm using enthought canopy and I have IPython version 2.4.1. I made sure to update using the IPython installation page for help. I'm not sure what's wrong

Unable to display Vincent sample maps; no suggested solutions work

限于喜欢 提交于 2019-12-05 04:35:58
问题 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 this code, nothing shows up in my console. There are no errors that appear. I've placed us_states.topo.json in my Python working directory. I updated Canopy and Vincent. I'm using vincent.core.initialize_notebook() as well as vis.display() like some