Enthought Canopy and Tkinter - python-2.7

I'm kind new on programming and I have this book ThinkPython 2012 which I'm planning to finish, I'm on chapter 4 and it requires me to download this package http://thinkpython.com/swampy. It would be easy if I just use the normal python however I am using enthought canopy. Is it possible to get that package into the canopy? I'm using windows 7 64-bit but I'm using a 32-bit canopy.

Should be straightforward. See these two articles on the Enthought support site:
https://support.enthought.com/entries/23389761-Installing-packages-into-Canopy-User-Python-from-the-OS-command-line
https://support.enthought.com/entries/21793229-Using-Tkinter-Turtle-in-Canopy-s-IPython-panel

Related

Using OpenAeroStruct with Fortran on Windows

I need to run several analyses with OpenAeroStruct on Python 2.7.15 on a Windows 8.1 platform. These are quite computationally expensive so I'm aware that using Fortran could improve performances but on OpenAeroStruct main github page (https://github.com/mdolab/OpenAeroStruct) it is stated that "there is no documented Windows support for the Fortran code". However, I found this question here: Failure to import pyOptSparseDriver that seems to be similar to my issue. If so, how do I install the pyoptsparse library ? I tried to copy the github in my python folder but still the driver seems not to be working.
The usage of pyOptSparse and the usage of Fortran for OpenAeroStruct are independent of each other. Compiling and using the Fortran version of the code will give you the biggest performance gain.
However, as you've found, successfully compiling this Fortran code on Windows is not straightforward. I'd suggest one of three options:
Obtain a system with Ubuntu Linux or Mac OS to use the Fortran version of the code.
Attempt to use Cygwin and a Fortran compiler to set up an environment within Windows where you could successfully install and run OpenAeroStruct's Fortran code.
You could set up an Ubuntu virtual environment within your Windows system, though this would take time and effort to set up and would be less computationally efficient than running it natively.

Hit two pythons with one computer

How would one set up python 2.7 and python 3.x on the same computer. Most of my old code is in 2, but a platform I am trying to use uses 3. How do I setup an enviroment in which I can work on both easily. I am using Ubuntu 13.10 by the way, so no Windows exclusives.
You pretty much said it in your question. You need to setup an environment, a virtualenv to be precise. Check this answer: https://stackoverflow.com/a/1534343/276451 it's exactly what you're looking for.

Python 2.7 vs Python 3.3 for Django development

We are just starting some cloud-based apps based on Python + Django and we have a small dilemma. At first we decided to go with Python 3.3, but than we saw that a lot of libraries/modules have not been ported yet, thus we might have to do extra work to make sure that everything works with Python 3.3.
Given the fact that the projects that we are starting will have a time frame of a few years what advice would you give us? To go with Python 2.7 or Python 3.3?
Thanks in advance!
Go with Python 2.7 for now. Make sure that your code translates cleanly when using 2to3. When the modules are available for Python 3.x, translate your code and run with it.

sublime text mac os development

I really like SublimeText2 on Mac OS X.
From wikipedia, it seems like this is build with python and C++.
How can I use python and C++ to develop for Mac OS X?
Can you use Python in XCode or is there any other environment to develop as mac desktop app?
Please teach me how.
Thank you.
Yes, you can use python and C++ to develop on OS X. Python and C++ are both capable of being developed using XCode. I would recommend XCode for C++ (Complete solution for writing Mac OS X application in C++). As for python, you can use XCode, but it might be a bit heavy. I use vim for python but vim isn't for everyone so I would also recommend Wing IDE 101 (http://wingware.com/downloads/wingide-101/4.1.9-1/binaries). I used it for a while with great success.

Is there a plug-in sample for Firefox 5 written in C++?

I've seen several examples, but for libraries with Gecko 1.9.2 or earlier, how do I create a plugin for Firefox 5 in C++?
The strange thing is that the official website just to gives me examples for Firefox v. 1.5 through v. 3.6 which is why I have experienced some difficulty.
You're better off using ctypes.