The Artima Developer Community
Sponsored Link

Python Buzz Forum
Introducing HTConsole

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Ian Bicking

Posts: 900
Nickname: ianb
Registered: Apr, 2003

Ian Bicking is a freelance programmer
Introducing HTConsole Posted: Jun 30, 2006 1:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ian Bicking.
Original Post: Introducing HTConsole
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ian Bicking
Latest Posts From Ian Bicking

After reading some discussions on edu-sig, and with a little inspiration from Try Ruby, I've been playing around more with a web-based console, HTConsole. (Like several people now, I am lazily using the Cheese Shop page as the homepage.)

This isn't intended to be Yet Another Python Console; I'm really thinking more about this as a learning tool. And since I haven't really thought about the security implications, you'll have to install it yourself to try it. Maybe some of this later.

But really, the idea isn't to duplicate (or even improve ala ipython) the console experience (ignoring the name), except to use that as a starting point.

So far I've mostly just achieved that starting point, but if you poke around there's a couple places where I'm expanding on that. If you add something to the local scope (e.g., through an import or assignment), it shows up in a table at the bottom of the screen. (Though I'm going to have to figure out how to keep the screen from getting too long.) Objects can also be displayed in an interactive manner. A function, for instance, has an edit button; if you hit it, you can edit the function in place. I want to add self-editing features to more objects. Well, at least to classes and functions. And dicts. And lists too I guess. And property. So, okay, a bunch of things.

On edu-sig there's also been talk of doctesting, and that's another thing I want to add, just to select a doctest and run it against the environment.

Anyway, it's kind of fun I think, and thoroughly non-enterprise; not even suitable for serious programming. That lends a sense of freedom. You install it like:

easy_install htconsole
... lots of junk passes by ...
htconsole
... web browser pops up with console ...

At least, I think this is all it should take to install.

Now to figure out some of the tricky Python magic to edit more objects in place...

Read: Introducing HTConsole


Topic: Why I Like Python more than Ruby Previous Topic   Next Topic Topic: Back from Guadec

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use