DreamPie - The Python shell you've always dreamed about!

N

Noam Yorav-Raphael

I'm pleased to announce DreamPie 1.0 - a new graphical interactive
Python shell!

Some highlights:

* Has whatever you would expect from a graphical Python shell -
attribute completion, tooltips which show how to call functions,
highlighting of matching parentheses, etc.
* Fixes a lot of IDLE nuisances - in DreamPie interrupt always works,
history recall and completion works as expected, etc.
* Results are saved in the Result History.
* Long output is automatically folded so you can focus on what's
important.
* Jython and IronPython support makes DreamPie a great tool for
exploring Java and .NET classes.
* You can copy any amount of code and immediately execute it, and you
can also copy code you typed interactively into a new file, with the
Copy Code Only command. No tabs are used!
* Free software licensed under GPL version 3.

Check it out at http://dreampie.sourceforge.net/ and tell me what you
think!

Have fun,
Noam
 
A

Aage Andersen

I tried to edit the awfully colors, here are the results:

Traceback (most recent call last):
File "dreampie.py", line 4, <module>()
File "dreampielib\gui\__init__.pyc", line 972, main()
File "dreampielib\gui\__init__.pyc", line 153,
__init__(self=DreamPie(path..."window_main"),
pyexec='C:\\Python26\\python.exe')
File "dreampielib\gui\__init__.pyc", line 829,
configure(self=DreamPie(path..."window_main"))
File "dreampielib\gui\tags.pyc", line 224,
apply_theme_text(textview=<gtk.Tex...xd82038)>,
textbuffer=<gtk.Tex...xd816d0)>, theme={('bracket-match', 'bg', 'color'):
'darkblue', ('bracket-match', 'bg', 'isset'): True, ('bracket-match', 'fg',
'color'): 'white', ('bracket-match', 'fg', 'isset'): False, ...})
ValueError: unable to parse colour specification

Now the program don't run.

Aage
 
A

Aage Andersen

I reinstalled and got this message:

Traceback (most recent call last):
File "dreampie.py", line 4, <module>()
File "dreampielib\gui\__init__.pyc", line 972, main()
File "dreampielib\gui\__init__.pyc", line 153,
__init__(self=DreamPie(path..."window_main"),
pyexec='C:\\Python26\\python.exe')
File "dreampielib\gui\__init__.pyc", line 829,
configure(self=DreamPie(path..."window_main"))
File "dreampielib\gui\tags.pyc", line 224,
apply_theme_text(textview=<gtk.Tex...xd82038)>,
textbuffer=<gtk.Tex...xd816d0)>, theme={('bracket-match', 'bg', 'color'):
'darkblue', ('bracket-match', 'bg', 'isset'): True, ('bracket-match', 'fg',
'color'): 'white', ('bracket-match', 'fg', 'isset'): False, ...})
ValueError: unable to parse colour specification

Aage
 
N

Noam Yorav-Raphael

Delete \Documents and Settings\<username>\DreamPie and it should now
work.
Did you edit the colors using the configuration window or manually?
If you edited them using the configuration window, can you give
instructions on how to reproduce the bug?

Noam
 
P

Paul Boddie

What OS are supported?

From the Web site referenced in the announcement (http://
dreampie.sourceforge.net/):

"""
# Supports Python 2.5, Python 2.6, Jython 2.5, IronPython 2.6 and
Python 3.1.
# Works on Windows and Linux.
"""

Paul
 
M

Mensanator

From the Web site referenced in the announcement (http://
dreampie.sourceforge.net/):

"""
# Supports Python 2.5, Python 2.6, Jython 2.5, IronPython 2.6 and
Python 3.1.
# Works on Windows and Linux.
"""

Yeah, I saw that. Funny that something important like that wasn't part
of the
announcement. I notice no mention of Mac OS, so visiting the website
was a complete
waste of time on my part, wasn't it?
 
S

ssteinerX

Yeah, I saw that. Funny that something important like that wasn't part
of the
announcement. I notice no mention of Mac OS, so visiting the website
was a complete
waste of time on my part, wasn't it?

See my earlier message -- I have it running just fine on 10.6 with MacPorts and even managed to report a bug!

S
 
S

Steven D'Aprano

Yeah, I saw that. Funny that something important like that wasn't part
of the
announcement. I notice no mention of Mac OS, so visiting the website was
a complete
waste of time on my part, wasn't it?

Of course not. Now you know that Mac OS isn't officially supported, so
you're less ignorant than you were before you went to the website.

But since Dreampie is written in Python, it shouldn't be that hard to
have it run on Mac OS, provided you can get the GUI tool kit it requires.
 
R

rantingrick

Mensanator snipped: """Yeah, I saw that. Funny that something
important like that wasn't part of the announcement. I notice no
mention of Mac OS, so visiting the website was a complete waste of
time on my part, wasn't it?"""

Oh Mensanator, why you always so grumpy? I visited your site a few
years ago and i found it to be a complete waste of my time but you
don't hear me whining about it do you? Besides mac is always the last
to get releases (if any) everybody knows that. If you drive a porsche
you can't get all upset every time you find yourself on road with pot-
holes, your just not *that* important because you drive a porsche!
Please (in the future) leave the ranting to me, i'm better at it ;).

Thanks for the release Noam, i look forward to "test driving" it.
hehe ;)
 
P

Philip Semanchuk

Mensanator snipped: """Yeah, I saw that. Funny that something
important like that wasn't part of the announcement. I notice no
mention of Mac OS, so visiting the website was a complete waste of
time on my part, wasn't it?"""

Oh Mensanator, why you always so grumpy? I visited your site a few
years ago and i found it to be a complete waste of my time but you
don't hear me whining about it do you? Besides mac is always the last
to get releases (if any) everybody knows that.


Erm...not if the developer uses a Mac. =)
 
M

Mensanator

Mensanator snipped: """Yeah, I saw that. Funny that something
important like that wasn't part of the announcement. I notice no
mention of Mac OS, so visiting the website was a complete waste of
time on my part, wasn't it?"""

Oh Mensanator, why you always so grumpy?

Part of the job requirements of a gadfly.
I visited your site a few
years ago and i found it to be a complete waste of my time but you
don't hear me whining about it do you?

Did I ever claim it wasn't?
Besides mac is always the last
to get releases (if any) everybody knows that.

I'm not complaining about the lack of Mac support, just that
it wasn't mentioned in the announcement.
If you drive a porsche
you can't get all upset every time you find yourself on road with pot-
holes, your just not *that* important because you drive a porsche!

"You're" not getting the point.
 
G

gorauskas

I installed it on a Windows 7 machine with CPython 2.6.4 and I get the
following error:

Traceback (most recent call last):
File "dreampie.py", line 3, in <module>
File "dreampielib\gui\__init__.pyc", line 73, in <module>
File "dreampielib\gui\load_pygtk.pyc", line 49, in load_pygtk
ImportError: DLL load failed: The specified module could not be found.

What am I doing wrong?

Thanks, JGG
 
P

Processor-Dev1l

I'm pleased to announce DreamPie 1.0 - a new graphical interactive
Python shell!

Some highlights:

* Has whatever you would expect from a graphical Python shell -
attribute completion, tooltips which show how to call functions,
highlighting of matching parentheses, etc.
* Fixes a lot of IDLE nuisances - in DreamPie interrupt always works,
history recall and completion works as expected, etc.
* Results are saved in the Result History.
Very good work, Noam,
I am looking forward to test this with IronPython :)
 
A

Alan Harris-Reid

gorauskas said:
I installed it on a Windows 7 machine with CPython 2.6.4 and I get the
following error:

Traceback (most recent call last):
File "dreampie.py", line 3, in <module>
File "dreampielib\gui\__init__.pyc", line 73, in <module>
File "dreampielib\gui\load_pygtk.pyc", line 49, in load_pygtk
ImportError: DLL load failed: The specified module could not be found.

What am I doing wrong?

Thanks, JGG
And I installed it on WinXP sp3 and Python 3.1 - when launched a window
flashes before my eyes, then disappears! Has the installation package
been checked for all common Windows versions?

Regards,
Alan
 
N

Noam Yorav-Raphael

‎Thanks! I'm happy you like it!
Thanks for the feedback too. Here are my replies.

This is bloody fantastic! I must say, this fixes everything I hate about
Ipython and gives me the feature I wished it had (with a few minor
exceptions).
I confirm this working on Kubuntu 9.10 using the ppa listed on the sites
download page.
Great. It's important to know.
I also confirm that it works interactively with PyQt4 and PyGtk (as to be
expected since these toolkits use the PyOS_inputhook for the mainloop).
However, it does not work interactively with wx (again, this is as expected
since wx doesn't use the PyOS_inputhook). In short, the gui toolkit support
is the same as in Ipython if you dont use any of the magic threading
switches, which are now deprecated anyway.
Actually, currently DreamPie doesn't use PyOS_inputhook, but
implements the GUI hooks by itself. So it should be possible to
implement wx support if there's a way to handle events for a few
milliseconds. I tried it a bit and didn't find how to do it - if you
are interested in wx support and think you can help, please do.
Matplotlib does not work interactively for me. Is there a special switch
that needs to be used? or should a pick a non-wx backend? (i'm thinking the
latter is more likely)
You should set "interactive:True" in your matplotlibrc file. The next
DreamPie version will warn about this.
A couple of things I would like to see (and will help implement if I can
find the time):
1) A shortcut to show the docstring of an object. Something like Ipython's
`?`. i.e.  `object.foo?` translates to `help(object.foo)`
I wrote this at http://wiki.python.org/moin/DreamPieFeatureRequests .
I hope I will manage to implement this soon.
2) How do I change the color of the blinking cursor at the bottom? I can't
see the damn thing!
It should be in the color of the default text. If this is not the
case, please file a bug!
3) line numbers instead of the `>>>` prompt
I know IPython does this, but I thought you needed it only if placing
the cursor on top of the command doesn't do anything. Can you tell me
why do you need this in the context of a graphical user interface?
4) a plugin facility where we can define our own `magic` commands. I use
Ipython's %timeit ALL the time.
Added it to the feature request page.
5) Double-click to re-fold the output section as well.
I don't think that's a good idea, because usually double-click selects
the word, and I don't want to change that behavior for regular text.
You can use ctrl-minus to fold the last output section!
Thanks for making this!!!!
Thanks for the feedback!

Noam
 
O

Olof Bjarnason

2010/2/23 Noam Yorav-Raphael said:
‎Thanks! I'm happy you like it!
Thanks for the feedback too. Here are my replies.


Great. It's important to know.

Actually, currently DreamPie doesn't use PyOS_inputhook, but
implements the GUI hooks by itself. So it should be possible to
implement wx support if there's a way to handle events for a few
milliseconds. I tried it a bit and didn't find how to do it - if you
are interested in wx support and think you can help, please do.

You should set "interactive:True" in your matplotlibrc file. The next
DreamPie version will warn about this.

I wrote this at http://wiki.python.org/moin/DreamPieFeatureRequests .
I hope I will manage to implement this soon.

It should be in the color of the default text. If this is not the
case, please file a bug!

I know IPython does this, but I thought you needed it only if placing
the cursor on top of the command doesn't do anything. Can you tell me
why do you need this in the context of a graphical user interface?

Added it to the feature request page.

I don't think that's a good idea, because usually double-click selects
the word, and I don't want to change that behavior for regular text.
You can use ctrl-minus to fold the last output section!

Thanks for the feedback!

I installed latest .exe from LP on my Win7/32-bit machine, nothing
happens when I start DreamPie. Is there a bug report file somewhere I
could send you Noam?

(Python2.6.4 installed on my machine)
 
A

alex23

Mensanator said:
"You're" not getting the point.

If every link has to be accompanied by a summary of all of the
information at the end of it, what point is there to linking?

(Programmers are the _only_ people I know of who complain about the
arduousness of tasks like typing quotes or clicking on links...)
 
S

Steven D'Aprano

If every link has to be accompanied by a summary of all of the
information at the end of it, what point is there to linking?

(Programmers are the _only_ people I know of who complain about the
arduousness of tasks like typing quotes or clicking on links...)

Once you've clicked on a link to Tubgirl or Goatsie Man once, you will
never, ever, ever click on an untrusted link again.

*wink*

But seriously... I dislike being sent links without any explanation of
what is in them, because in my experience, 9 times out of 10 if I had
been told, I wouldn't have bothered to clink on the link.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,946
Members
47,498
Latest member
yelene6679

Latest Threads

Top