News for hackers. Stuff that matters.
Re:Chrome Extension: Python Shell by bkhl on Saturday December 25, 2010 @04:19PM (#2039424)
I love Python and all, but how is this extension useful? or are people just liking this extension because it is "cool"?
Re:Chrome Extension: Python Shell by angrycoder on Saturday December 25, 2010 @06:06PM (#2039555)
Chrome netbooks
Re:Chrome Extension: Python Shell by drdaeman on Saturday December 25, 2010 @06:25PM (#2039585)
IMHO, it feels quite awkward to have GNU/Linux system under the hood, and "run" Python by sending requests to some interpreter-hosting third-party service.

However, I would extremely enjoy Python interpreter being hooked with Chrom{e,ium}, either as Python-to-Javascript compiler, or native code plugin. Preferably, with ability to interact with DOM and Javascript.

Re:Chrome Extension: Python Shell by gcb on Saturday December 25, 2010 @09:37PM (#2039891)
"IMHO, it feels quite awkward to have GNU/Linux system under the hood, and "run" <application> by <some awkward way>"

You just summed up my feeling of using android. and why i'm not exited the slightest by the chrome netbooks.

Re:Chrome Extension: Python Shell by rphlx on Saturday December 25, 2010 @10:28PM (#2039937)
Come on, they wanted to give thousands of devs the chance to re-implement C apps in java. Poorly. Under the delusion that they can become ramen-profitable one day.

OTOH, Angry Birds is awesome, so I suppose it wasn't a total waste.

Re:Chrome Extension: Python Shell by streeter on Saturday December 25, 2010 @06:24PM (#2039583)
It's useful for when you're doing stuff on a Chrome OS computer. You can't pop open a shell running Python.
Re:Chrome Extension: Python Shell by statictype on Saturday December 25, 2010 @08:12PM (#2039761)
All these hacks to route around limitations of web-based computers seem like such a step backwards. We already have a nice python interpreter. Why are we reinventing it in javascript?
Re:Chrome Extension: Python Shell by mike4u2 on Saturday December 25, 2010 @06:22PM (#2039578)
It seems this shell does not automate the browser, or?

I use iMacros for web browser automation. Now, if iMacros would understand Python... ;)

Re:Chrome Extension: Python Shell by calebegg on Saturday December 25, 2010 @03:57PM (#2039401)
I guess that's one answer.

>>> 2+2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>401 Unauthorized</title> <h1>Unauthorized</h1> <p>The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.</p><p>In case you are allowed to request the document, please check your user-id and password and try again.</p>

Re:Chrome Extension: Python Shell by l0nwlf on Saturday December 25, 2010 @04:44PM (#2039453)
>>> 2+2

4

However,

>>> import gc

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<title>500 Internal Server Error</title>

<h1>Internal Server Error</h1>

<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

Re:Chrome Extension: Python Shell by beoba on Saturday December 25, 2010 @05:58PM (#2039546)
Comment from the extension page:

"Nice, but beware. This thing appears to send everything you type in the shell to a remote computer, so don't use it as a scratch space for personal information."

On that note, why does it ask for permission to view browser history?

Re:Chrome Extension: Python Shell by jared314 on Saturday December 25, 2010 @11:44PM (#2040028)
The Chrome extensions permissioning system is not specific enough.
Re:Chrome Extension: Python Shell by nightlifelover on Saturday December 25, 2010 @04:25PM (#2039431)
How is a Python shell related to the browser? I mean if you had a Python API available to google chrome, or if you could browse the DOM tree it would be useful..
Re:Chrome Extension: Python Shell by igorgue on Saturday December 25, 2010 @05:07PM (#2039480)
Re:Chrome Extension: Python Shell by kilian on Saturday December 25, 2010 @04:36PM (#2039445)
There is a python shell plugin for gedit that gives you access to your text document.

If someone could do that for this plugin, i.e. Giving you access to the main tab/window object, that would be seriously cool. Prototyping screen scraping, building easy extentions using python, and hacking a quick change into a website would all be so easy.

Re:Chrome Extension: Python Shell by deno on Sunday December 26, 2010 @04:24AM (#2040356)
That's what I was hoping to find when I saw that link. However, you could probably do something like this. I think two ways to implement this are immediately obvious:

1. Create bookmarklet/extension that injects Silverlight's IronPython. This can already work with live DOM and all you need to do is create a nice REPL.

2. Have pyjamas running in background and compiling Python->Javascript on the fly.

Re:Chrome Extension: Python Shell by Mithrandir on Saturday December 25, 2010 @08:24PM (#2039780)
Re:Chrome Extension: Python Shell by rosariom on Saturday December 25, 2010 @02:36PM (#2039304)
Thanks for this link... This should make for a cool extension
Re:Chrome Extension: Python Shell by halojones on Sunday December 26, 2010 @08:18AM (#2040505)
Re:Chrome Extension: Python Shell by l0nwlf on Saturday December 25, 2010 @04:48PM (#2039458)
One can also take a look at Crunchy. [ http://code.google.com/p/crunchy/ ]
Re:Chrome Extension: Python Shell by aroberge on Saturday December 25, 2010 @09:24PM (#2039878)
Three major differences: Crunchy requires Python to be installed on your computer; nothing is sent to a remote server; Crunchy is currently only guaranteed to work on Firefox. On this last point, it is likely to stay that way for a while as I have little time these days to work on it. ;-)
Re:Chrome Extension: Python Shell by detcader on Saturday December 25, 2010 @04:28PM (#2039435)
I already have Windows + P as my 'gnome-terminal --command "python"' keybinding (in Ubuntu), but I'm sure I'll find a use for this.
Re:Chrome Extension: Python Shell by peregrine on Saturday December 25, 2010 @07:50PM (#2039735)
os.listdir(".//") I guess the author made it open source :).

Anyways you cannot write, I'v been poking around a bit but it appears he is using a lexer/parser.