I've been using the Enthought Python Distribution for about a month, and like it a lot. I test my code in ipython, which gives me the following when I launch it in a terminal :
Enthought Python Distribution -- www.enthought.com
Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012, 11:14:05)
Type "copyright", "credits" or "license" for more information.
IPython 0.12.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
I'm now looking for an IDE, and I've come across problems with Canopy - specifically, getting it to use my Enthought distribution as their live consoles, much like my ipython works.
I can't find anywhere to change the interpreter under Canopy. When it launches, it gives me
Welcome to Canopy's interactive data-analysis environment!
with pylab-backend set to: None
Type '?' for more information.
This isn't using EPD, and thus, isn't using any of the packages that I've got installed.
Any ideas would be fantastic !
Thanks.
This article should answer your question.
In brief, there is no way at present to change the interpreter in Canopy. However, Canopy is built on an improved version of EPD.
So you would need to re-install your packages into Canopy. However you should never need to do this again, even when Python is updated (e.g. eventually to 2.7.5) -- whereas with EPD, whenever the interpreter changed, you had to reinstall and start from scratch.
If you do install Canopy 1.0.0, be sure to update to 1.0.1 (from Help menu) before installing your other packages.
Related
I've seen a lot of related questions on variables with Spyder. My problem, though, is with path autocompletion, as in
with open ('/Users/user_name/<TAB>
doing nothing. My local variables do get autocompleted;module functions as well. I'm running Python 3.5, Spyder 3.1.4 (from Anaconda). I have the following packages (that I think might be pertaining to the question) installed:
rope 0.9.4 py35_1
jedi 0.10.2 py35_2
numpydoc 0.6.0 py35_0
Thanks in advance
I have been using Enthought Canopy for quite a while now with the academic license. Till today it was working fine, today I got the request to update Canopy. I assume to version 1.7 since that seems to be the latest. After installing and restarting the computer no error message but Canopy does not open anymore. Just nothing happens when I try to open Canopy, Package Manager, Code Editor nevertheless the Canopy cmd seem to be fine.
Now it is getting interesting, I can still start Ipython/Jupyter notebooks via regular win cmd and run python scripts with Canopy. Although the files are no longer marked as to be opened by canopy with the blueish symbol and do not open on click or double click as before.
import sys
print sys.prefix
C:\Users\MYNAME\AppData\Local\Enthought\Canopy32\User
Consequently, I can work and I am hesistant to try fixes since I am afraid to make it even worse. Reinstall is is only okay if I can get back all my installed libraries with ease.
However, I found very convenient to use canopy since I was able to start ipython notebooks directly in the file explorer by double click instead of going through the cmd. Furthermore, the Package Manager is also a quite handy tool, I really would like to have both back working fully.
Thank you for your suggestions:
System:
Windows 8, 64-bit operating system
Installed Version of Canopy:
`Canopy32\\App\\appdata\\canopy-1.6.2.3262.win-x86\\lib`
(consistent in sys path and control panel - program and features)
The Canopy Support Directed me to a working solution:
Note, uninstalling Canopy does not affect your installed package set.
You have two choices:
A) It would be cleanest to start with the up-to-date package set in
Canopy 1.7.
To do that, then after you uninstall Canopy 1.6, but before you
install 1.7, delete directories:
C:\Users\MYNAME\AppData\Local\Enthought\
C:\Users\MYNAME\AppData\Roaming\Enthought\ B) However if you have a
number of non-Enthought packages installed into Canopy, which would be
troublesome to re-install, you could choose to delete the above
directories and their subdirectories, with the exception of this
directory C:\Users\MYNAME\AppData\Local\Enthought\Canopy32\User\
which is where your existing packages are installed.
If you do this, then after restarting you'll be running Canopy 1.7 but
with your pre-existing package set from Canopy 1.6.2.
I chose to deinstall 1.6. and install 1.7.1 and I did not delete the directory with the external libraries.
I have IPython and IPython Notbook installed and am working my way through the IHaskell installation instructions. I have all the IHaskell prerequisites installed, but before I commit to the final step of installing IHaskell itself with
cabal install ihaskell --reorder-goals
I want to confirm one — perhaps obvious — thing: Will I still be able to use Python Notebooks? The instructions following the step above seem to say that simply entering
ipython notebook
will run Haskell rather than Python, as if Haskell has replaced Python in IPython Notebooks. Is this the case? How do I specify whether I want to run Haskell or Python in a notebook, or in IPython itself for that matter? Can I switch freely between the two?
OS X 10.10.4; Xcode 6.4; CLT: 6.4.0.0.1; Clang: 6.1; Haskell Platform 7.10.2-a. Python 2.7.10 (Homebrew). Using Homebrew in general, but, following what appears to be Homebrew's recommendation, not for Haskell.
Like other kernels, IHaskell can be added to IPython/Jupyter without interfering with other kernels. Once added Notebooks will recognize the language used in (suitably tagged) notebooks and will add an entry to the 'New' notebook menu that allows selection of the language to be used for new notebooks.
Each kernel will have its own command for adding itself to IPython/Jupyter. For IHaskell this is simply
ihaskell install
I am new to Linux and Python, just starting some programming this weekend. All was going great until this morning, when I was playing with "save" to save my workspace. (I selected the "magic" menu bar, so perhaps I screwed up something from there.) I must have changed my settings so that the prompt no longer appears when I start IPython. I get all the stuff that normally appears prior to getting the prompt (shown below), but no prompt and the interpreter does not work. If I run IPython in terminal, I get the prompt and all works fine. The problem is just in IPython console. I have rebooted just in case (perhaps this is a windows thing and does not apply to Linux).
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
Type "copyright", "credits" or "license" for more information.
IPython 0.12.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
%guiref -> A brief reference about the graphical user interface.
"ipython console" or "ipython qtconsole" ? Also try upgrading, 0.12.1 is almost 2 years old.
You can try to remove/rename ~/.ipython folder where all IPython config/history is stored.
I was previously running Enthought EPD 7.3.2, but switched over to Canopy (academic license). I completely uninstalled EPD before running the Canopy install.
After installing Canopy, I have a shortcut to IDLE in the Canopy start menu folder, but I can't get it to launch (I click it and nothing happens). Tried uninstalling and reinstalling Canopy, but am having the same issue.
Running the 64-bit version of Canopy on Win7, 64bit.
I had a similar problem and found a very simple solution. Try it out and see if it works in your situation too. There is a directory for the Canopy installation:
C:\Users\\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.7.4.3348.win-x86_64\Lib\idlelib
Find “idle.ico” file there, copy and paste it into “Icons” subdirectory.
This fixed the problem!
Canopy 1.0 and 1.0.1 versions have problems with tcl and TKinter, and IDLE doesn't work. This should be fixed in an update, which is just round the corner.
As an afterthought, is there a specific reason you wish to use IDLE? Canopy's editor comes integrated with an IPython console (along with many other goodies), which gives a much better user experience while programming, IMO. (Disclaimer: I work for Enthought)