Fabio,
I think the following steps (as a protoype of an Eclipse macro) might explain
the use and functionality that I desire
(1) check to see if Python external shell is open, if not open one
(2) save code in editor window
(3) run the code (file) -- execfile(%file)
(4) move window attention to python shell
In an IDLE file editor window, F5 basically runs these steps
I am sure some things that I am used to doing with an IDLE-Python Shell combo
can be done directly in Eclipse+Pydev, but here is an example of what I might
do, after running some code script (where in
this example I was modifying an existing pyhton UNIX shell script to run as a
callable function, so interactive session experimentation and exploration helps)
** look at variables in memory
>>> dir()
['CACHE', 'DAYSECS', 'DEBUG', 'MONTH2NUM', 'Y2KCUTOFF', '__builtins__',
'__doc__', '__name__', '__version__', 'aggDates', 'allDates', 'anydbm', 'dd',
'dd_mmm_yy2yyyymmdd', 'dx', 'getCachedTicker', 'getRate', 'getTicker',
'getTickers', 'getTickersNow', 'getTickersNowChunk', 'getopt', 'isInt', 'main',
'os', 'parseDate', 'pyQ', 're', 'showUsage', 'showVersion', 'splitLines',
'string', 'sys', 'time', 'traceback', 'urllib', 'usageError', 'yy2yyyy']
** print out one
>>> print dx
01JAN2006
** try out a function in interactive mode
>>> d1='20080219'
>>> d2='20080318'
>>> pyQ('IBM',d1,d2)
[['ibm', '20080319', 'N/A', 'N/A', 'N/A', '118.41', '3100']]
-------------- Original message --------------
From: "Fabio Zadrozny" <[EMAIL PROTECTED]>
> > I have just started to use PYDEV, after exclusively using IDLE and I am
> > getting used to the Ecllipse Workbench and Views.
>
> Mastering those is really central to eclipse ;-)
> It's nice to get used to ctrl+F6 / F7 / F8
>
> >> I would find it useful to have a Python Shell window that has the 'memory
> > state' of the Python code that had just been run (i.e. like IDLE) Is this
> > possible with Eclipse and pydev?
>
> I'm working on having a better shell integration (there should be
> something working well for the next release, but in the current
> release that's not available).
>
> >
> > I have figured out how to make an external tool that opens a Python, but
> > the
> > pydev window code does not run in this window. I can guess the problem I
> > need to solve is that the code being run through pydev and Eclipse is
> > in the console window and if I can keep it not terminated I
> > would get the functionality I want.
>
> As I said, I'm working on having a better shell, but it's still not
> there... can you give me some example on the use-case you want to
> achieve (I'm not really a user of Idle, so, if you could explain more
> in details what you want, I have a better chance of getting to it).
>
> Cheers,
>
> Fabio
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Pydev-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pydev-users -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users