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
109
votes
2 answers

What are the differences between ipython and bpython?

What does ipython have that bpython lacks and vice versa? How do the two differ?
igorgue
  • 17,884
  • 13
  • 37
  • 54
21
votes
2 answers

Is there something like bpython for Ruby?

IRb is pretty plain compared to bpython, even when using wirble. Is there any ruby equivalent of bpython?
maček
  • 76,434
  • 37
  • 167
  • 198
19
votes
2 answers

Is it possible to use bpython as a full debugger?

I would like to use the bpython interpreter for debugging. My question is similar to "Is it possible to go into ipython from code?", which asks about ipython. If you use ipdb.set_trace() you get a full ipython session with all of its conveniences.…
YXD
  • 31,741
  • 15
  • 75
  • 115
18
votes
5 answers

Running bpython inside a virtualenv

I have created a virtualenv and installed SQLAlchemy in it: $ virtualenv alchemy $ source alchemy/bin/activate $ pip install sqlalchemy import works in python: $ python Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
10
votes
1 answer

How to install bpython for Python 3?

I've been using bpython for Python 2 and now I want to use it for Python 3 as well. However I've run into problems. The bpython documentation reads: bpython supports Python 3. It's as simple as running setup.py with Python 3. When I run the setup…
timkl
  • 3,299
  • 12
  • 57
  • 71
9
votes
1 answer

IPython with bpython features

I really admire bpython with its nice coloring and autocomplete, autohint and so on. The problem is, there are some features in IPython which I can't do without, for example, reload, magic commands, matplotlib interacting, the shell interaction, the…
varantir
  • 6,624
  • 6
  • 36
  • 57
9
votes
1 answer

bpython-like autocomplete and parameter description in Emacs Python Mode?

I've been using bpython for a while now for all of my Python interpreting needs. It's delightful, particularly when you're using unfamiliar new libraries, or libraries with a multitude of functions. In any case, it's nice to have a bpython…
Bradley Powers
  • 717
  • 7
  • 19
7
votes
1 answer

Bpython-like editor/IDE?

I love bpython's fast, comprehensive autocompletion and I'd really like to use it right inside my editor/IDE. Is there a way to integrate it into vim/gedit/eclipse/etc? Thanks.
user456584
  • 86,427
  • 15
  • 75
  • 107
6
votes
1 answer

Why is string.letters different between python and bpython?

I ran into a strange issue today. I was using the Python standard library's string module's letters variable and noticed that the result in bpython was not the same as the result in vanilla python. I'm using Python 2.7.3 and bpython 0.10.1 and…
Matthew J Morrison
  • 4,343
  • 3
  • 28
  • 45
5
votes
2 answers

bpython configuration - importing numpy and matplotlib by default

Is it possible to start the bpython interpreter so that it always runs some custom commands when it launches? In my case I simply want to do: import numpy as np import matplotlib.pyplot as plt I can't see anything in the docs. Anyone know a way?
YXD
  • 31,741
  • 15
  • 75
  • 115
5
votes
3 answers

How to inspect the type of REPL you're using?

There're many kinds of Python REPL, like the default REPL, ptpython, ipython, bpython, etc. Is there a way to inspect what current REPL is when I'm already in it? A little background: As you may have heard, I made pdir2 to generate pretty dir()…
laike9m
  • 18,344
  • 20
  • 107
  • 140
4
votes
2 answers

Ctrl+D equivalent in IPython and bpython?

In the standard Python interactive shell, I can press Ctrl+D to close stdin and it shows the output: $ python Python 2.7.2 (default, Mar 7 2012, 21:18:58) [GCC 4.5.3] on linux2 Type "help", "copyright", "credits" or "license" for more…
quanta
  • 3,960
  • 4
  • 40
  • 75
4
votes
2 answers

Installing bpython on Windows 10

I am attempting to install bpython on Windows 10 and have followed the process to the best of my ability as outlined on the official bpython website and on this helpful GitHub gist. I am running PowerShell on a 64bit laptop running Windows 10, and…
4
votes
1 answer

Why isn't bpython3 debugging?

Apparently I've unlearned how to debug with python. I run bpython3 -i myfile.py, but when an exception occurs I still don't have access to the program variables, nor I can find any command like gdb's up and down. I've tried to import pdb and play…
o0'.
  • 11,739
  • 19
  • 60
  • 87
3
votes
1 answer

Blender 2.5 Python animated world texture setup

I need to set up an animated (i.e. from video file) world texture in blender 2.58 using python. I make a texture like this: import bpy # create new clouds texture bpy.ops.texture.new() wtex = bpy.data.textures[-1] # set World texture wrld =…
bonext
  • 147
  • 5
1
2 3