473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

'REPL' style IDE

Hi Everyone,

I am using the Wing IDE. It works great when developing applications,
but the workflow is like Visual Studio -- after you execute it or
debug it, the python script ends.

What I want is an interactive interpreting environment. I want the IDE
to execute a boot script to initialize my environment and create some
basic data objects. And then I want to be able to type in command on
the command line using these objects. The IDLE that comes with Python
does this, but compared with Wing, it does not have a lot of the
convenient features.

I am wondering if there is anything more powerful than IDLE that can
do this.

Thanks,
Geoffrey

Aug 20 '07 #1
8 1177
On Aug 20, 12:50 pm, beginner <zyzhu2...@gmail.comwrote:
Hi Everyone,

I am using the Wing IDE. It works great when developing applications,
but the workflow is like Visual Studio -- after you execute it or
debug it, the python script ends.

What I want is an interactive interpreting environment. I want the IDE
to execute a boot script to initialize my environment and create some
basic data objects. And then I want to be able to type in command on
the command line using these objects. The IDLE that comes with Python
does this, but compared with Wing, it does not have a lot of the
convenient features.

I am wondering if there is anything more powerful than IDLE that can
do this.

Thanks,
Geoffrey
If Wing could load my init script into a python session ONCE and then
run my code in another files MANY times, with or without the debugger,
without starting a new python session, that would be great.

Aug 20 '07 #2
python-mode in Emacs.

Aug 20 '07 #3
On 8/20/07, beginner <zy*******@gmail.comwrote:
Hi Everyone,

I am using the Wing IDE. It works great when developing applications,
but the workflow is like Visual Studio -- after you execute it or
debug it, the python script ends.

What I want is an interactive interpreting environment. I want the IDE
to execute a boot script to initialize my environment and create some
basic data objects. And then I want to be able to type in command on
the command line using these objects. The IDLE that comes with Python
does this, but compared with Wing, it does not have a lot of the
convenient features.

I am wondering if there is anything more powerful than IDLE that can
do this.
I use Wing IDE.
Place something like this on the bottom of your module you are debuging.
Place a stop point on the line you want then start your debug! Hope that helps.

def test():
c=MyClass
c.do_foobar()

if __name__ == '__main__':
test()
--
Later, Joe
Aug 20 '07 #4
On 8/20/07, JoeSox <jo****@gmail.comwrote:
On 8/20/07, beginner <zy*******@gmail.comwrote:
Hi Everyone,

I am using the Wing IDE. It works great when developing applications,
but the workflow is like Visual Studio -- after you execute it or
debug it, the python script ends.

What I want is an interactive interpreting environment. I want the IDE
to execute a boot script to initialize my environment and create some
basic data objects. And then I want to be able to type in command on
the command line using these objects. The IDLE that comes with Python
does this, but compared with Wing, it does not have a lot of the
convenient features.

I am wondering if there is anything more powerful than IDLE that can
do this.

I use Wing IDE.
Place something like this on the bottom of your module you are debuging.
Place a stop point on the line you want then start your debug! Hope that helps.

def test():
c=MyClass
c.do_foobar()

if __name__ == '__main__':
test()
Just seeing if you all were paying attention :P

s/b...
c=MyClass()

--
Later, Joe
Aug 20 '07 #5
On Aug 20, 2:51 pm, JoeSox <joe...@gmail.comwrote:
On 8/20/07, beginner <zyzhu2...@gmail.comwrote:
Hi Everyone,
I am using the Wing IDE. It works great when developing applications,
but the workflow is like Visual Studio -- after you execute it or
debug it, the python script ends.
What I want is an interactive interpreting environment. I want the IDE
to execute a boot script to initialize my environment and create some
basic data objects. And then I want to be able to type in command on
the command line using these objects. The IDLE that comes with Python
does this, but compared with Wing, it does not have a lot of the
convenient features.
I am wondering if there is anything more powerful than IDLE that can
do this.

I use Wing IDE.
Place something like this on the bottom of your module you are debuging.
Place a stop point on the line you want then start your debug! Hope that helps.

def test():
c=MyClass
c.do_foobar()

if __name__ == '__main__':
test()
--
Later, Joe
Thanks for your help.

Yes, this is what I always do. However, I want more than debugging
interactively. I am trying to use the python interperter as a
programmable application. Once I run my boot script, the python
interpreter should have all the right objects and libraries, and the
end user (who obviously knows python) can simply type in a few
commands, calling my functions, to achieve his purposes
interactively.

What I am doing right now is almost exactly what you prescribed. I put
a 'pass' statement at the end of my boot script and set a breakpoint
on it, so that once the debugger stops on the breakpoint, the user can
start typing in commands in the Debug Probe window. But this is by no
means a nice set up.

Thanks,
Geoffrey

Aug 20 '07 #6
On Aug 20, 2:39 pm, Jeff <jeffo...@gmail.comwrote:
python-mode in Emacs.
Yeah, but I don't know anything about Emacs and as far as I know it is
pretty complicated.

Aug 20 '07 #7
How about embedding ipython in your script with:

from IPython.Shell import IPShellEmbed

ipshell = IPShellEmbed()

** your set up code **

ipshell() # this call anywhere in your program will start IPython

see: http://ipython.scipy.org/doc/manual/...html#sec:embed

Here are some ipython tips: http://ipython.scipy.org/doc/manual/node4.html

Another option is to set up Wing so that it attaches to a process that
is started externally (http://wingware.com/doc/debug/importing-the-
debugger)

So... in one window you can run your code that sets up everything and
then displays the ipython CLI - and in the other window you have
WingIDE where you can set your breakpoints and use the GUI.

Is this what you're looking for?
Aug 21 '07 #8
At 10:50 AM 8/20/2007, beginner wrote:
>Hi Everyone,

I am using the Wing IDE. It works great when developing applications,
but the workflow is like Visual Studio -- after you execute it or
debug it, the python script ends.

What I want is an interactive interpreting environment. I want the IDE
to execute a boot script to initialize my environment and create some
basic data objects. And then I want to be able to type in command on
the command line using these objects. The IDLE that comes with Python
does this, but compared with Wing, it does not have a lot of the
convenient features.

I am wondering if there is anything more powerful than IDLE that can
do this.
Are you sure you can't do this with Wing? Have you asked support,
<su*****@wingware.com>?

Dick Moores

======================================
Bagdad Weather
<http://weather.yahoo.com/forecast/IZXX0008_f.html>

Aug 22 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: macgyver | last post by:
This is a strange question, and I think the answer is NO, but I am asking anyway. I am a member of a website which allows us to alter our member profiles. Using css in the middle of the profile...
3
by: Fabian | last post by:
How can I read the object.style.display attribute? With teh following: var x = object.style.display; I always get a result of undefined. Solutions? -- -- Fabian
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
0
by: cedoucette | last post by:
I just wrote code to support sortable columns in a datagrid. It seems to work fine; but, it doesn't look right. The problem is that I have a generic style for links and a different style for the...
1
by: RonY | last post by:
I have a dropdown which calls SetTimePeriod method on change the selection. In the JS function, I reset the field style.display based on what the selection is. This works fine with IE but not working...
6
by: rongchaua | last post by:
Hi all, I want to change the style of a button. But I don't know how to do it. For example, I have already a button OK on form. I want to add these styles to this button (WS_CHILD || WS_VISIBLE ||...
3
by: Michellevt | last post by:
Hi I am working on a project (for college) and wondered if anyone can help me with my problem. In the project we are not allowed to make use of any "style" attributes but "class" attributes...
3
Claus Mygind
by: Claus Mygind | last post by:
I want to move some style setting into a javaScript function so I can make them variable but I get "invalid assignment left-hand side" error? see my question at the bottom of this message. It...
3
by: Matthew Fitzgibbons | last post by:
I've got a pretty complex interactive command line program. Instead of writing my own REPL, I'm using the Python interpreter (an infinitely better solution). This program has two threads, a...
0
by: Matthew Fitzgibbons | last post by:
Matthew Fitzgibbons wrote: Here's a modified example that _almost_ works: #!/usr/bin/env python import code import time import threading
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.