Hi, I'm taking a class on Python and the compiler used in class does not work correctly on my computer. I've used eclipse for C and Java and I figured I could try Python with it as well. The issue is the stuff we do in class, they give us a pre-written script and have us enter different inputs in the console to see what results. I've figured out how to open the console but when I try to use any functions they don't work. I also have PyDev extensions installed too. Is there anyway to have this work without having to manually create the execfile?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could just copy/paste you code directly there... (although the execfile should work: in the extensions: ctrl+alt+enter will do the execfile for you)
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I just tried pydev. It's good, but there is one thing that I want to do and can't find how:
I create a function in the editor, start a python console, then try to use the function but I can't.
I also can't import the file I am editing.
Can someone explain how does the console work?
Thank
Eric
To get your current editor contents, right now you have to write the execfile yourself:
e.g.:
execfile('c:\\path\\to\\my_file.py')
I think that's the only difference in Pydev extensions regarding the console ( http://fabioz.com/pydev/manual_adv_interactive_console.html ) -- it adds a shortcut to start the console and to make that execfile.
Cheers,
Fabio
Hi, I'm taking a class on Python and the compiler used in class does not work correctly on my computer. I've used eclipse for C and Java and I figured I could try Python with it as well. The issue is the stuff we do in class, they give us a pre-written script and have us enter different inputs in the console to see what results. I've figured out how to open the console but when I try to use any functions they don't work. I also have PyDev extensions installed too. Is there anyway to have this work without having to manually create the execfile?
You could just copy/paste you code directly there... (although the execfile should work: in the extensions: ctrl+alt+enter will do the execfile for you)
Cheers,
Fabio
Hi,
I also have this problem. I only have the opensource version but have purchased the extensions, I am waiting on the key!
I tried the first suggestion offered above but no success.
Maybe I should wait on my license key and it will work, I can get it to work from PythonWin