Ubuntu :: Get A Python Shell And Idle?

Dec 23, 2010

how do i get a python shell and idle on Ubuntu? so i can start learning how to write codes.

View 1 Replies


ADVERTISEMENT

Red Hat / Fedora :: IDLE In Python 2.6.2 In 12?

Apr 2, 2010

I used the Windows form of Python's IDLE for a long time and now that i have fedora, I only can get into the command line interactive. I have TKinter and a bunch of packages for it, so I don't think thats the problem, I just cant get into idle.

View 8 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

Fedora :: Install Python 3 And Idle In 12?

May 28, 2010

how can i install python 3 and idle in fedora 12? yum search for any plausible variation on python3 (python-3, Python-3.1, etc.) that i could think of yields nothing, same in add/remove software. so i got the tarball from python.org and followed book instructions on it (summerfield's python 3, p. 4), namely unpack it, run './configure', run 'make' and finally run 'make install'

in my add/remove programs window, for idle, it says i have the one for python 2.6 installed, but i can't find where to open the program. but i'd like to use 3.1.2 python anyway. additional note: if i type python -V i get Python 2.6.x (can't remember the last digit, i think it's 2), and if i type python3 -V i get Python 3.1.2. so, how do i get python 3 installed and idle for python 3 running?

View 9 Replies View Related

Fedora :: How To Tell IDLE To Run Python 3 In Core 13

Sep 24, 2010

I have IDLE installed with the Python-tools package, but when I run IDLE in command line, it runs python 2.6...I have python 3 installed, I'm just wondering how to tell IDLE to run Python 3. The reason I ask is because, if I go through IDLE, file>Path Browser, I see a lot of Python 2.6 files...but no Python 3 files. When i run yum install Python3 -

[root@Homecomp Legio]# yum install python3
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package python3-3.1.2-7.fc13.x86_64 already installed and latest version
Nothing to do

When I look for Python 3, I find it in /usr/bin/Python3, an executable file, along with 3.1, 2.6 and a link to executable 2. I have no files in /usr/local/bin. My question is...How do I tell IDLE to run Python 3 instead of 2? I just started using Fedora, so I don't have all the commands down yet. Have to say its a bit different than Windows...but in a good way so far.

View 6 Replies View Related

Programming :: Bash-shell-like Less Functionality In The Python Shell?

Jun 25, 2010

Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?

Example:

Code:

>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...

I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.

View 4 Replies View Related

General :: Write A Shell Script Contains Python One?

Oct 22, 2010

I want to write a shell script contains python one. So,the result of python one is flv file. I want the path of this is copied into a enviroment variable that i have to pass as a flag argument of another program (to convert into mp3). To individuate the result of python script I thought to use (in PWD)

Code:
ls | grep -E '^.*mp3$'
But my question is: How can I copy this result into enviroment variable?

View 4 Replies View Related

Programming :: Run Shell Scripts Wrapped In Python?

Jul 11, 2010

I'm a new programmer (a life-long desire, but at 40 just getting to it) and cutting my teeth with Python. I just found the popen2 module today. I was so excited because I could do this:

Code:

>>> from popen2 import popen3
>>> cmd ="""TEXT="Hello, World!"
... echo $TEXT"""
>>> std_out, std_in, std_err = popen3(cmd)

[code].....

If you want to use another shell, substitute that shell for /bin/bash (e.g., /bin/sh for the shell portability purists out there). It is easy to modify what is returned as well. Don't like the tuple? Then just change it to return or even print stdout if you like.

View 14 Replies View Related

General :: Write Either PYTHON Or Bash Shell Scripting?

Jun 4, 2010

I do not know how to write either PYTHON or Bash Shell Scripting. I am to learn one for Linux Administration purpose. Which one will you recommend for a Linux Admin/Eng environment?

View 4 Replies View Related

General :: CPUs Keep Toggling Between 100%idle And 0% Idle

Mar 22, 2011

When I run top d 0.5 on my machine and I press 1 to enable the SMP View, I notice that all of the CPUs keep toggling between 100%idle and 0% idle.

The odd part is that when a CPU goes to 0.0% idle, I would expect to see one or more of the other columns peek, but they are not.

What is causing this?

Code:

View 8 Replies View Related

Programming :: Convert Python Script To Shell Script?

Aug 28, 2010

I have a python script that i want to convert to shell for a specific reason. The converted script should also be able to accept a command line arg such as hostname, which the current python script doesn't.

View 13 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

Mar 22, 2009

I want to be able to do

sudo ./program.py

instead of always having to do

sudo python program.py

What do I need to change?

View 5 Replies View Related

Programming :: Python - Get Text File Data Into An Array On Python?

Nov 30, 2009

I've already used line split stuff to transform my data into something like this in a text file:

Code:

['1', '1', '3', '20.7505207']
['2', '1', '3', '23.0488319']
['3', '1', '3', '-1.5768747']
['4', '1', '3', '-26.4772491']

[code]....

How can I get this on a python program so I can manipulate it as an array?

View 3 Replies View Related

General :: Get Apt-get To Install Python Packages For A Different Version Of Python?

Oct 27, 2010

in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work

View 3 Replies View Related

Software :: Python 3 Want Situation For Python 2 And Become Stop?

Jul 17, 2010

Python 3 want situation for python 2?Python 2 become stop?

View 1 Replies View Related

CentOS 5 :: Yum - Python-devel / Python Dependency

Jan 7, 2011

yum dependency problem please? I am running Centos 5.5. I need to install python-devel, but when I do so I get:

[Code]....

View 2 Replies View Related

Programming :: Python 2.x - Represent The Same In Python 3.x

Mar 4, 2010

I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x

Code:

def blah(self, (string1, string2))

View 4 Replies View Related

CentOS 5 :: Upgrade Python-2.4.3 To Python-2.5?

Mar 30, 2011

How can I upgrade python-2.4.3 to python-2.5?

View 1 Replies View Related

Ubuntu :: Python Interactive Session: "help()", Then "modules" Freezes Python?

Jan 12, 2011

This problem has to do with Python's interactive help (To get to the interactive help, just type help() at any interactive session). I like to browse all my installed Python modules, to see if I can find something that would be useful for my hobby programming projects. However, recently, typing modules (which is the command to list all installed modules) freezes the interactive session.

View 1 Replies View Related

Fedora :: Using Python 2.5 With Python 2.6 With F12?

Nov 30, 2009

Fedora 12 officially uses Python 2.6, good. But the Google AppEngine still goes by Python 2.5 and is showing import errors while i try to start the SDK. Here is the stack trace.

[URL]

View 3 Replies View Related

Ubuntu :: Gdm Suspend On Idle

Aug 24, 2010

Is it possible to have the machine suspend when idle at the gdm login screen? I understand it is possible when a user is logged in through the System > Preferences > Power Management controls. What is happening is that the computer is sitting at the login screen and stays on, wasting power. I'd like it to suspend/sleep after a timeout.

View 3 Replies View Related

Ubuntu :: Root Using 100% Cpu On Idle / What Is Going On?

Aug 25, 2010

I've got 10.04 running and I just couldn't believe how slow it was, even playing a simple ..... video is jumpy, compared to xp on the same machine, this is 3 times slower..

A quick look at top tells me root has 100% cpu at all times. Nothing is running.

Any ideas what is going on?

View 9 Replies View Related

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related

Ubuntu :: Switch Desktop Shell From Unity To Gnome-shell?

Apr 14, 2011

Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.

(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)

View 2 Replies View Related

Ubuntu :: Non-Fatal Hang When Idle

Feb 20, 2010

I've had this bug on pretty much all Linux distro's I've tried in the last few months, but because I love Ubuntu and I can't seem to find this bug reproduced anywhere (though I'm not sure it's a bug worth reporting if it's just me) I decided to bring it here: Whenever a program that is not resource intensive (for example, Update Manager while it's downloading packages) is running for around 20 seconds, and I am not typing or moving my mouse, the system will hang. It will sit there for hours on end unless I move the mouse or hit a key.

Worse yet, it will hang on boot and shutdown too. I often have to hit a key to get the hard drive to start reading again and for anything else to happen for that matter. I'm using Ubuntu 9.10 on a relatively new laptop, but like I said before, it's happened on a bunch of distros: Debian, openSUSE, Fedora... I just have no idea what could be causing it at this point.

View 1 Replies View Related

Ubuntu :: Disable A Certain USB Port When PC Is Idle?

May 14, 2010

I have a USB powered LED light attached to my pc. ( I keep my cave dark and this little light perfectly lights up my desktop and keyboard) I would like to be able to turn off the USB port the LED light is attached to when the PC goes to idle and dims my monitors and when the PC goes back to active I would like the LED light to come back on.

View 4 Replies View Related

Ubuntu :: 10.04 Does Not Auto Clock Down CPU When Idle

Jul 7, 2010

When I'm on windows 7 my core i3 processors automatically clocks down when not much CPU power is needed. Somehow I have the idea that ubuntu 10.04 doesn't auto clock down my CPU when idle. I can tell by the short life my full battery has on ubuntu. Only 2hours compared to 5 on windows 7. Is there a way to manage this? So that the CPU automaticly adjusts it's clock settings?

View 3 Replies View Related

Ubuntu :: Prevent Idle Script

Sep 7, 2010

I need a script to prevent the laptop becoming idle, because if I don't move the mouse a few seconds everything stops. I tried everything so please don't ask about the problem.There is such a script or someone can create one for me?

View 1 Replies View Related

Ubuntu :: Computer Shuts Down When Idle?

Feb 2, 2011

Sometimes, when I leave my Ubuntu's X Server on, I'll come back after several minutes and see that my machine is powered off. Sometimes this happens, sometimes it doesn't, but I don't think it's because of hardware failure rather than my lack of measurement.

It used to power off in terminal mode (CTRL+ALT+F1) but then I added this to ~/.bashrc and it went away:

Code:
if [ "${USER}" == "root" ]
then
export TMOUT = 3600
fi

Also, I checked my logs and I see this:

Code:
Feb 2 00:00:09 l1nux AptDaemon: INFO: Quiting due to inactivity
Feb 2 00:00:09 l1nux AptDaemon: INFO: Shutdown was requested

Since it's not a CRITICAL message, but an INFO, it seems like its a planned shutdown.

Does anyone know how I can turn this feature off?

View 3 Replies View Related

Ubuntu :: Run A Program On System-idle?

Apr 8, 2011

Torrents client kills my Internet connectivity so bad I can't even use a web-browser whilst it's on -- pages take like five minutes to load -- I often forget to turn on my torrent client. Which led me to wonder if there's a way I can launch a script on system idle?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved