[web2py] Re: Change IPython to BPython in shell mode

2011-04-11 Thread Arun K.Rajeevan
I think he is talking about http://bpython-interpreter.org/
Which is a lightweight python console with auto completion and etc.,

To support this, add an option in gluon/widget.py for additional command 
line switch
And then in gluon/shell.py (around line no: 204 add option for bPython)
import bpython
bpython.embedd() #pass-in appropriate parameters

I haven't looked exactly how we can make use of bpython from within our own 
application.
But it's something like that.

May be I can provide a patch for this.


[web2py] Re: Change IPython to BPython in shell mode

2011-04-10 Thread ron_m
First item on Blender page you reference, big discussion on auto import bpy. 
All the arguments look familiar. :-)


[web2py] Re: Change IPython to BPython in shell mode

2011-04-08 Thread Bruno Rocha
No idea?
Em 07/04/2011 11:13, Bruno Rocha rochacbr...@gmail.com escreveu:
 hi,

 does anybody knows how to run the web2py shell using BPython instead of
 IPython?

 I saw a line in gluon/shell.py but I did not find argument to pass in
 console.

 Would be great a way to run:

 $python web2py.py - S appname -M -bpython

 Is it possible or even changing in code?

 Thanks
 --
 Bruno Rocha
 [ About me: http://zerp.ly/rochacbruno ]


[web2py] Re: Change IPython to BPython in shell mode

2011-04-08 Thread Massimo Di Pierro
talking about this?

http://wiki.blender.org/index.php/Dev_talk:Source/BPython/API/bpy_api

It should be easy..
open the shell and type:

from gluon.globals import Request, Response, Session
from gluon.compileapp import build_environment(
request=Request()
response=Response()
session=Session()
request.application = ''
globals().update(build_environment(request,response,session))



On Apr 8, 10:37 am, Bruno Rocha rochacbr...@gmail.com wrote:
 No idea?
 Em 07/04/2011 11:13, Bruno Rocha rochacbr...@gmail.com escreveu:







  hi,

  does anybody knows how to run the web2py shell using BPython instead of
  IPython?

  I saw a line in gluon/shell.py but I did not find argument to pass in
  console.

  Would be great a way to run:

  $python web2py.py - S appname -M -bpython

  Is it possible or even changing in code?

  Thanks
  --
  Bruno Rocha
  [ About me:http://zerp.ly/rochacbruno]


Re: [web2py] Re: Change IPython to BPython in shell mode

2011-04-08 Thread Bruno Rocha
I Dont know if I am talking about the same thing.

When using web2py shell form console, if IPython is installed web2py shell
runs in IPython interactive console.

I wqas wondering about change it to BPython by command line.

$python web2py.py -S appname -M
 IPython shell running


$python web2py.py -S appname -M -bpython
BPython shell running (if installed)



On Fri, Apr 8, 2011 at 1:07 PM, Massimo Di Pierro 
massimo.dipie...@gmail.com wrote:

 talking about this?

 http://wiki.blender.org/index.php/Dev_talk:Source/BPython/API/bpy_api

 It should be easy..
 open the shell and type:

 from gluon.globals import Request, Response, Session
 from gluon.compileapp import build_environment(
 request=Request()
 response=Response()
 session=Session()
 request.application = ''
 globals().update(build_environment(request,response,session))



 On Apr 8, 10:37 am, Bruno Rocha rochacbr...@gmail.com wrote:
  No idea?
  Em 07/04/2011 11:13, Bruno Rocha rochacbr...@gmail.com escreveu:
 
 
 
 
 
 
 
   hi,
 
   does anybody knows how to run the web2py shell using BPython instead of
   IPython?
 
   I saw a line in gluon/shell.py but I did not find argument to pass in
   console.
 
   Would be great a way to run:
 
   $python web2py.py - S appname -M -bpython
 
   Is it possible or even changing in code?
 
   Thanks
   --
   Bruno Rocha
   [ About me:http://zerp.ly/rochacbruno]



Re: [web2py] Re: Change IPython to BPython in shell mode

2011-04-08 Thread Jason Brower

+1 BPython kicks some seriouls python console!
BR,
Jason
On 04/08/2011 08:50 PM, Bruno Rocha wrote:

I Dont know if I am talking about the same thing.

When using web2py shell form console, if IPython is installed web2py 
shell runs in IPython interactive console.


I wqas wondering about change it to BPython by command line.

$python web2py.py -S appname -M
 IPython shell running


$python web2py.py -S appname -M -bpython
BPython shell running (if installed)



On Fri, Apr 8, 2011 at 1:07 PM, Massimo Di Pierro 
massimo.dipie...@gmail.com mailto:massimo.dipie...@gmail.com wrote:


talking about this?

http://wiki.blender.org/index.php/Dev_talk:Source/BPython/API/bpy_api

It should be easy..
open the shell and type:

from gluon.globals import Request, Response, Session
from gluon.compileapp import build_environment(
request=Request()
response=Response()
session=Session()
request.application = ''
globals().update(build_environment(request,response,session))



On Apr 8, 10:37 am, Bruno Rocha rochacbr...@gmail.com
mailto:rochacbr...@gmail.com wrote:
 No idea?
 Em 07/04/2011 11:13, Bruno Rocha rochacbr...@gmail.com
mailto:rochacbr...@gmail.com escreveu:







  hi,

  does anybody knows how to run the web2py shell using BPython
instead of
  IPython?

  I saw a line in gluon/shell.py but I did not find argument to
pass in
  console.

  Would be great a way to run:

  $python web2py.py - S appname -M -bpython

  Is it possible or even changing in code?

  Thanks
  --
  Bruno Rocha
  [ About me:http://zerp.ly/rochacbruno]