News for hackers. Stuff that matters.
Re:DreamPie: The Python shell you've always dreamed about by pingswept on Sunday February 21, 2010 @01:03PM (#1140925)
"Interrupt the process or kill it - the history is preserved!"

That's enough to make me try this.

Re:DreamPie: The Python shell you've always dreamed about by f_sav on Sunday February 21, 2010 @01:21PM (#1140962)
He had me at "code/history" division. I really don't like the way I must usually enter functions in the basic interpreter (line by line, can't go back... unless I missed something?).

To me that's an interesting cross between an IDE (with completions, snippets etc.) and an interpreter.

Re:DreamPie: The Python shell you've always dreamed about by algorias on Sunday February 21, 2010 @02:50PM (#1141126)
Yeah, that's great to have. If only there was a way to run the code without it being erased, so you can seamlessly work on a single piece and test it repeatedly.
Re:DreamPie: The Python shell you've always dreamed about by gnaritas on Sunday February 21, 2010 @03:16PM (#1141167)
There is, in Smalltalk, we call it a workspace. This shell is basically a crippled workspace tied to a transcript. Getting closer and closer to Smalltalk.
Re:DreamPie: The Python shell you've always dreamed about by zephyrfalcon on Monday February 22, 2010 @11:27AM (#1143005)
I thought that this kind of smug remarks was reserved for Lisp weenies, but apparently not. ;-)
Re:DreamPie: The Python shell you've always dreamed about by thezilch on Sunday February 21, 2010 @02:54PM (#1141133)
You may like to try out the following (vim solution): http://m5.posterous.com/slime-like-communication-from-vim-to...
Re:DreamPie: The Python shell you've always dreamed about by abecedarius on Sunday February 21, 2010 @10:17PM (#1141851)
I do that with http://github.com/darius/halp in Emacs.
Re:DreamPie: The Python shell you've always dreamed about by nas on Sunday February 21, 2010 @09:52PM (#1141817)
pyrepl allows multi-line editing of history. It's pretty neat, IMHO.
Re:DreamPie: The Python shell you've always dreamed about by berryg on Sunday February 21, 2010 @01:16PM (#1140951)
Is there a download for OS X somewhere?
Re:DreamPie: The Python shell you've always dreamed about by bshep on Sunday February 21, 2010 @05:59PM (#1141400)
I got it working, you need macports installed:

  1) sudo port install py26-pygtksourceview
  2) python2.6 dreampie
Step 1 takes a LONG time ( about 2-3hrs on my MBP )
Re:DreamPie: The Python shell you've always dreamed about by Estragon on Sunday February 21, 2010 @12:22PM (#1140831)
I'm not seeing much of a win here over emacs's py-shell.
Re:DreamPie: The Python shell you've always dreamed about by alrex021 on Sunday February 21, 2010 @12:35PM (#1140864)
This one doesn't come with an Emacs 10 year learning curve prerequisite. ;-)
Re:DreamPie: The Python shell you've always dreamed about by Estragon on Sunday February 21, 2010 @12:48PM (#1140899)
Oh come now. It's at most two years. :-)
Re:DreamPie: The Python shell you've always dreamed about by nuclear_eclipse on Sunday February 21, 2010 @10:08PM (#1141839)
or an Emacs prereq, for us Vim users...
Re:DreamPie: The Python shell you've always dreamed about by artagnon on Sunday February 21, 2010 @01:05PM (#1140928)
Yeah, ipython.el improves upon python-mode. I'd really like to see if it can be enhanced further using DreamPie.
Re:DreamPie: The Python shell you've always dreamed about by samdk on Sunday February 21, 2010 @01:01PM (#1140918)
Is there anything like this that integrates well with Vim? Or should I get hacking?
Re:DreamPie: The Python shell you've always dreamed about by abentspoon on Sunday February 21, 2010 @02:28PM (#1141083)
I posted this last week:

http://m5.posterous.com/slime-like-communication-from-vim-to...

It lets you open a vim session from ipython, and send lines, selections, or the whole file back to the shell. If you'd like to do some hacking, it doesn't seem to be able to send single function definitions yet.

Re:DreamPie: The Python shell you've always dreamed about by rquirk on Sunday February 21, 2010 @01:13PM (#1140944)
http://code.google.com/p/conque/

From the site: Conque is a Vim plugin allowing users to execute and interact with programs, typically a shell such as bash, inside a buffer window.

Re:DreamPie: The Python shell you've always dreamed about by akkartik on Sunday February 21, 2010 @02:23PM (#1141076)
I also recently discovered this awesome plugin that uses screen for the heavy lifting: http://www.vim.org/scripts/script.php?script_id=2711
Re:DreamPie: The Python shell you've always dreamed about by xtho on Sunday February 21, 2010 @01:09PM (#1140933)
Since you can include a python interpreter in vim, building some sort of REPL should be rather trivial.
Re:DreamPie: The Python shell you've always dreamed about by ErrantX on Sunday February 21, 2010 @01:34PM (#1140992)
Just run the installer and you should be fine.

This is the advice under the Windows install section. Unfortunately it's a no go due to a pyGTK dependency - it just errors out completely.

(note this is only a 30s try - I will come back and figure out the dependency, but pyGTK under windows isnt a quick fix apparently..... not got the time now)

Re:DreamPie: The Python shell you've always dreamed about by noamraph on Sunday February 21, 2010 @04:36PM (#1141283)
I will thank you a lot if you investigate the problem. The Windows installer comes with PyGTK, so it is supposed to be stand alone. Can you file a bug and help me fix it?

Thanks, Noam

Re:DreamPie: The Python shell you've always dreamed about by ErrantX on Sunday February 21, 2010 @06:01PM (#1141404)
I've had a think (and reread the install instructions which did suggest that in retrospect) I have a feeling I installed pyGTK (or at least tried too) in the past.

Im pretty sure I installed it from source (or whatever the main way for Windows is).

I'll have a look. If it's a bug not caused by my mistake (probably is) I'll let you know.

Re:DreamPie: The Python shell you've always dreamed about by alaithea on Sunday February 21, 2010 @01:44PM (#1141004)
It looks really cool; if only I could get it working.

Anybody else having trouble with the Ubuntu PPA? I can sudo add-apt-repository ppa:dreampie-devel/ppa just fine, but when I do apt-get update, the dreampie stuff comes up 404.

Re:DreamPie: The Python shell you've always dreamed about by mark_l_watson on Sunday February 21, 2010 @01:56PM (#1141029)
I had to install it from source on Ubuntu 9.10

after:

sudo apt-get install python2.5-gtksourceview2

sudo apt-get install python2.6-gtksourceview2

Re:DreamPie: The Python shell you've always dreamed about by noamraph on Sunday February 21, 2010 @05:00PM (#1141318)
Does it still happen? Because for me it works fine. (The add-apt-repository command added a strange 'n' line which I removed, but then it worked. No 404.)
Re:DreamPie: The Python shell you've always dreamed about by alaithea on Monday February 22, 2010 @11:25AM (#1142992)
Works now, thanks.
Re:DreamPie: The Python shell you've always dreamed about by diN0bot on Sunday February 21, 2010 @03:55PM (#1141223)
it's the multi-line history that is so XXXing annoying. i use the interpreter quite a bit....unless i need to write multiline for loops.
Re:DreamPie: The Python shell you've always dreamed about by llimllib on Sunday February 21, 2010 @06:14PM (#1141416)
is there some reason ipython doesn't work for you for this purpose?
Re:DreamPie: The Python shell you've always dreamed about by mark_l_watson on Sunday February 21, 2010 @01:55PM (#1141027)
That is really neat - I just installed it. I don't usually use Python (strongly preferring Ruby) but I want to experiment with Python + AppEngine (I am tired of the hassles with JRuby + AppEngine, and using Java + AppEngine is too easy :-)

I installed PyCharm a few hours ago and Dreampie will be good for light weight experiments.

Re:DreamPie: The Python shell you've always dreamed about by phren0logy on Sunday February 21, 2010 @02:56PM (#1141137)
While I also prefer ruby, iPython and some of these other shells are dramatically better than irb, even with some of the nice irb add-ons.

Here's to hoping ruby will catch up.

Re:DreamPie: The Python shell you've always dreamed about by wedesoft on Sunday February 21, 2010 @03:55PM (#1141219)
Apart from 'irb/completion' I use 'wirble' [1] for colour highlighting of the output in Ruby/IRB [1]. I had to modify it to get it to work with Ruby 1.9 though [2]. I don't think anybody has done syntax highlighting for input.

[1] http://pablotron.org/?cid=28

[2] http://www.wedesoft.demon.co.uk/downloads/wirble.rb

Re:DreamPie: The Python shell you've always dreamed about by asmosoinio on Monday February 22, 2010 @04:06AM (#1142302)
Thanks! A great tool, and a great website promoting it: clean, immediate screenshots showing the pros. And most importantly a quick one click installer to start playing with it.

What made we wonder for a while (not reading any helps, of course) is how to enter multi-line code if you want to start with a single statement, but that cleared out after a few tries (enter a black line first).

Re:DreamPie: The Python shell you've always dreamed about by farnsworth on Sunday February 21, 2010 @03:57PM (#1141227)
This literally does look like the shell I've always dreamed about. Experimenting with functions or loops is usually such a pain.
Re:DreamPie: The Python shell you've always dreamed about by phaedrus on Monday February 22, 2010 @12:47AM (#1142037)
This is EXACTLY like what I wanted to create for the Io language; I wonder how hard it would be to make this work with the Io interpreter instead of Python...
Re:DreamPie: The Python shell you've always dreamed about by bitwize on Monday February 22, 2010 @11:24AM (#1142987)
Sweet!

I'm working on something like this for Scheme... but it's in Python: an OLPC activity for Lisp development.

Re:DreamPie: The Python shell you've always dreamed about by zephyrfalcon on Monday February 22, 2010 @11:30AM (#1143014)
Tell me more...
Re:DreamPie: The Python shell you've always dreamed about by bitwize on Tuesday February 23, 2010 @10:17AM (#1145516)
I call it Silas -- Superior Interactive Lisp Activity for Sugar. It basically spawns a Lisp and talks to it via pipes or (eventually) SWANK. The focus is on Scheme but if you wanted to use, say, SBCL that's certainly possible. You will be able develop code in the top window and talk to Lisp in the bottom window. You will be able to command Lisp to evaluate the current sexpr, the current selection, or the entire buffer contents of the top window; and save your code in a module, and it will keep track of all the modules you've written and let you import them into Scheme in your code or in interaction.

This is really just a first step: what I'd like to write is a "Lisp machine" activity, where everything from handling the display to file I/O and interacting with the rest of Sugar is done from within the running Lisp.

Re:DreamPie: The Python shell you've always dreamed about by j_baker on Sunday February 21, 2010 @06:47PM (#1141478)
How long until there's a yapython?
Re:DreamPie: The Python shell you've always dreamed about by rockstar9 on Sunday February 21, 2010 @08:58PM (#1141719)
Not to be off-topic, but is it just me, or is the name a little, well, funny?