Questions tagged [bpython]

bpython is a fancy interface to the Python interpreter for Unix-like operating systems.

bpython is a fancy interface to the Python interpreter for Unix-like operating systems (I hear it works fine on OS X). It is released under the MIT License. It has the following features:

In-line syntax highlighting. Readline-like autocomplete with suggestions displayed as you type. Expected parameter list for any Python function. "Rewind" function to pop the last line of code from memory and re-evaluate. Send the code you've entered off to a pastebin. Save the code you've entered to a file. Auto-indentation. Python 3 support.

(Source: http://bpython-interpreter.org/)

44 questions
0
votes
3 answers

bpython -i & namespaces

I can't seem to find this answer anywhere. Given the trivial example: # myclass.py class MyClass: def __init__(self): print 'test' def main(): my_class_instance = MyClass() if __name__ == '__main__': main() some_var = 'i…
nfarrar
  • 2,291
  • 4
  • 25
  • 33
0
votes
1 answer

bpython not running on win 10 despite installed curses

so i went through the workaround in order to be able to run bpython on a windows 10 PC (64 bit, Python 3.10.2). installed the necessary curses from http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses installed bpython (pip install bpython) and ran…
0
votes
1 answer

Python interactive interpreter in hashbang line

For my django projects, I wanted to write a simple replacement for manage.py shell to take advantage of bpython. Essentially all it does is run setup_environ(settings) and then import some common models (User, etc.) in any case, everything works…
danny
  • 10,103
  • 10
  • 50
  • 57
0
votes
1 answer

Detect if the user is running bpython shell

I want to detect if the user is running bpython shell. I've looked around but couldn't find anything that looked useful. For instance, trying to import bpython and relying on that is a false-positive, because the user could have bpython installed…
adder
  • 3,512
  • 1
  • 16
  • 28
0
votes
2 answers

Send and run multiple lines of Python to a visible running python/bpython/ipython interpreter process

I am running a full-screen tmux, split into two panes. The left pane runs vim, where I edit Python files. The right pane runs a Python interpreter. I would like to be able to highlight multiple lines in vim (Shift+V), then using some shortcut key,…
Kit
  • 30,365
  • 39
  • 105
  • 149
0
votes
2 answers

How do I show my argspec/docstring in bpython?

I'm just starting to use bpython, mainly because I really think it will help the office nubs a lot. In bpython, it continually shows help text as you type. For example >>>…
chriscauley
  • 19,015
  • 9
  • 33
  • 33
0
votes
1 answer

Is it possible to use bpython in Sublime Text?

I have bpython installed, and it's working perfectly when I call it on my terminal. But I use Sublime Text to write my Python, and I would like to have bpython on it. Has anyone succeeded to integrate it in Sublime? Or is there another way to get…
Lily H.
  • 164
  • 2
  • 10
0
votes
1 answer

How to use Bpython with GAE remote_api_shell.py?

Basically I'm trying to get the Google App Engine remote_api_shell.py to look like this: Instead of looking like this: For some reason this works: $ python /usr/local/bin/remote_api_shell.py banded-advice-96618 but this does not work: $ bpython…
Alex Cory
  • 10,635
  • 10
  • 52
  • 62
0
votes
1 answer

Using Flask-Script shell with BPython can't get app context

I am building a Flask application using app factory pattern. If I install BPython on my virtualenv, and use the shell, it seems like it cannot get the app context, and therefore when I try to do something like: >> Role.query.all() I get a…
E Rodriguez
  • 323
  • 1
  • 2
  • 14
0
votes
1 answer

how do I set a value for a ShapeKey in Blender Python?

I've managed to insert Shape Keys from Python using: ob = Scene.GetCurrent().object.active; if(ob.activeShape == 0): ob.insertShapeKey() ob.insertShapeKey() Now how do I change a key value ?
George Profenza
  • 50,687
  • 19
  • 144
  • 218
0
votes
1 answer

Is there a F#/.NET multiplatform lib like bpython-curTsies to make a nice repl?

I need to make a custom REPL, and spoiled by bpython/ipython I wonder if exist something similar to it? I wish to provide colored output, history, code completion, as close to http://ballingt.com/2014/05/13/bpython-curtsies-release.html as possible.
mamcx
  • 15,916
  • 26
  • 101
  • 189
0
votes
1 answer

bpython : pastebin error

I'm using bpython and on F8 I'm getting this following 301 error: Upload failed:
Papouche Guinslyzinho
  • 5,277
  • 14
  • 58
  • 101
0
votes
1 answer

bpython get all possible completions

For example, when I type from some.module import a I get list of what begins with "a" How can I get the whole list, not for only "a" or other letter?
igor
  • 2,746
  • 3
  • 20
  • 24
0
votes
2 answers

What implements the same functionality in python ruby's load

In irb we can do: >> load 'example.rb' Which loads the source of example.rb in to environment. What is alternative for bpython and ipython?
Pol
  • 24,517
  • 28
  • 74
  • 95
1 2
3