You are not logged in.

#1 2004-10-21 21:42:35

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Python IDE

Is there a python IDE with autocompletion similar to Visual Basic or Visual C++?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#2 2004-10-21 22:16:54

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Python IDE

Do you want 'written in python' or 'works for python'?

the only python IDE I remember is idle; it comes with Python. I know there are others, I investigated them once, but I forget them all.

JEdit has pretty good Python support, but is written in Java.

Dusty

Offline

#3 2004-10-21 22:26:49

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Python IDE

i'm looking for works in python


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#4 2004-10-21 22:49:00

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: Python IDE

gvim to the people  big_smile


arch + gentoo + initng + python = enlisy

Offline

#5 2004-10-21 22:57:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Python IDE

gvim + some plugins:
i use http://www.vim.org/scripts/script.php?script_id=1074 for calltips

Offline

#6 2004-10-21 23:09:10

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: Python IDE

good tip but I'm not that advanced coder yet,

I use gvim for everything from xml ,c, python but I don't like autocompletion features,
maybe that's more for "people that know what they are doing"

gvim is damn good though, 
nice themes also  big_smile


arch + gentoo + initng + python = enlisy

Offline

#7 2004-10-21 23:32:31

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Python IDE

I get so many errors using python calltips..
This when starting calltips:

Error detected while processing function DoCalltips:
line    2:
E319: Sorry, the command is not available in this version: python CT_Init()
line    3:
E319: Sorry, the command is not available in this version: python CT_mapkeys()
line    4:
E319: Sorry, the command is not available in this version: python CT_ImportObjec
t()

And this when starting vim:

Error detected while processing /usr/share/vim/plugin/python_calltips.vim:
line   81:
E319: Sorry, the command is not available in this version: python << PYTHONEOF
line   82:
E492: Not an editor command: import vim
line   83:
E492: Not an editor command: import __builtin__
line   84:
E492: Not an editor command: from string import letters
line   85:
E488: Trailing characters: try:
line   86:
E492: Not an editor command:     from sets import Set
line   87:
E492: Not an editor command: except:
line   88:
E492: Not an editor command:     pass
line   90:
E492: Not an editor command: def CT_GetWordUnderCursor():
line   92:
E492: Not an editor command:     stack = []
line   93:
E492: Not an editor command:     leftword = rightword = popword = word = ''
line   94:
E492: Not an editor command:     WORD = vim.eval('expand("<cWORD>")')  #return a big WORD
line   96:
E488: Trailing characters:     #According '.', seperate the WORD into left part and right part
line   97:
E492: Not an editor command:     rindex = WORD.rfind('.')
line   98:
E121: Undefined variable: rindex
E15: Invalid expression: rindex == -1:      #if a WORD is not include '.'
line  137:
E133: :return not inside a function
line  170:
E133: :return not inside a function
line  181:
E133: :return not inside a function
line  224:
E488: Trailing characters
line  232:
E488: Trailing characters
line  240:
E488: Trailing characters
line  322:
E133: :return not inside a function
line  428:
E171: Missing :endif
Hit ENTER or type command to continue

What version do you have and how did you install it?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#8 2004-10-21 23:43:19

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Python IDE

i'm using it on windows from work... dont have it setup at home... you're going to need some pythin packages IIRC...
im not really sure... it "just works" here... let me do a bit of research when i get home (on my way out of the office now...)

however : vim needs to be compiled with "+python" and I'm not sure if the arch package has it... according to the creator, it works fine in vim6.3 and python 2.3.....

Offline

#9 2004-10-22 00:08:44

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Python IDE

How do I compile vim with pyton?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#10 2004-10-22 00:18:50

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Python IDE

Nevermind, I got it to compile.. Calltips are nice big_smile


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#11 2004-10-22 00:29:42

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Python IDE

WOW.  Calltips and SuperTab... That makes vim the PERFECT EDITOR I WAS LOOKING FOR!!  Thank you so much guys... I am eternally grateful big_smile  No more keeping python API docs up all the time  big_smile

Question:  Is there any way to automatically call DoCalltips() when editting a *.py file?


Maybe I'll make a vim-python package with python enabled and plugins installed.... Because this beats ANY ide ANY day!


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#12 2004-10-22 00:32:05

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Python IDE

Also:  Is there some way of running the program through python in vim?  Maybe some plugin or something?


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#13 2004-10-22 00:53:46

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: Python IDE

I know i can :pyfile whatever.py, but how can I pyfile the file I'm working on (saved or not?)


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#14 2004-10-22 01:53:57

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Python IDE

there's a tip that explains it... i can't recall offhand... i think the tip or script wasn't specifically for python, but actually allowed you to type out some python, select it all and run the script and it inserts the output in place of the script - it was really cool.... tomorrow at work i'll make sure to post some of my tidbits

Offline

#15 2004-10-22 04:25:41

freakyc
Member
Registered: 2004-03-28
Posts: 91

Re: Python IDE

There's also DrPython.  I can't say I've used it much (I think there's gonna be some work to get it going with Arch, old wxgtk and such).  And code completion needs a plugin.

And if you use KDE, there's eric3.  I believe it's Staging that it's in, but it seems to have a package conflict.

Just thought I'd throw those out.

Offline

#16 2004-10-22 14:13:56

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Python IDE

python << EOL
  import vim, StringIO,sys
  def PyExecReplace(line1,line2):
    r = vim.current.buffer.range(int(line1),int(line2))
    redirected = StringIO.StringIO()
    sys.stdout = redirected
    exec('n'.join(r[:]) + 'n')
    sys.stdout = sys.__stdout__
    output = redirected.getvalue().split('n')
    r[:] = output[:-1] # the -1 is to remove the final blank line
    redirected.close()
EOL
command -range pyexec python PyExecReplace(<f-line1>,<f-line2>)

add this to your vimrc... you can fiddle with it, but basically, you select a python snippet and run ":pyexec" and it will run it... you can use % to run the entire buffer too.... ":%pyexec" i think

however, this does replace the selection with an output... if you know vim scripting+python well enough (i really dont) you could open a temp buffer and spit the output there.....

Offline

#17 2004-10-22 14:24:35

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Python IDE

I know there is an eclipse plugin for python. I have started using it, and its verrrry nice.

Offline

#18 2004-10-22 14:30:52

freakyc
Member
Registered: 2004-03-28
Posts: 91

Re: Python IDE

I actually just looked at the page for that plugin yesterday and didn't think of it.  I think this is what you meant:  http://pydev.sourceforge.net/

Offline

#19 2004-10-22 14:44:10

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Python IDE

Yuhuh, i found it here a few weeks ago:
http://www-106.ibm.com/developerworks/l … drs-tp2604

Offline

#20 2004-10-25 18:21:18

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Python IDE

I've heard great things about ActiveState's Komodo IDE.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#21 2004-12-21 19:56:30

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: Python IDE

I've heard great things about ActiveState's Komodo IDE.

Me too, but its a commercial product...

Eclipse works quite well thought, and pardon me, Vim lovers.. but Emacs has great support too. (Im bi-editor wink Vim for fast console editing and Emacs for long works)

Eric looked nice, but it didnt worked so good to me, also, KDevelop and Anjuta have some kind of support i think...

What other good (free) IDEs are out there?


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#22 2009-08-17 18:55:31

someone
Member
Registered: 2009-08-13
Posts: 2

Re: Python IDE

hi, im probe to use drpython. I'm interested to run the code... I press the run button but the code doesn't start

Offline

#23 2009-08-17 19:11:40

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Python IDE

This thread is almost 5 years old.  Please post your own new topic.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#24 2009-08-17 19:23:25

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Python IDE

rson451 wrote:

This thread is almost 5 years old.  Please post your own new topic.

What he said. :)

Offline

Board footer

Powered by FluxBB