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

Pydocs in iPython similar to bpython

Is there a way to do inline pydocs in iPython the same way it works in bpython. bpython screenshots from their site:
prafulfillment
  • 911
  • 2
  • 11
  • 26
1
vote
1 answer

Pass arguments to Cygwin through a python program

I came across bpython and tried to installed it on my windows system with the help of cygwin. Now, whenever I have to access bpython program I have to open cygwin and than write bpython inside the cygwin shell. Now I am trying to automate the above…
RanRag
  • 48,359
  • 38
  • 114
  • 167
1
vote
1 answer

bpython in Emacs

I've started using bpython for my python interpreting needs. I like the syntax highlighting and the tab completion mode. I'd like to get bpython working in emacs (note: simply running the bpython command in shell mode doesn't work) so that I can…
Bradley Powers
  • 717
  • 7
  • 19
1
vote
1 answer

How to cut and paste in bpython?

I would like to cut and paste directly in the shell session, if possible. I have a simple with block in a .py file: with open('t1_equip.json') as json_file: data = json.load(json_file) # Print the type of data variable print("Type:",…
1
vote
1 answer

Can't install bpython on Windows 10 via pip

I've tried to setup windwos-curses as first step and it completes fine. python -m pip install windows-curses Also the following python -m pip install bpython does not show any problems. Unfortunately running bpython results in…
user11323942
1
vote
2 answers

How to format output in the Python shell to be multiline?

In both the Python Shell and BPython, I'm trying to make my output naturally break onto multiple lines as it does in, for example, the node interpreter. Here's an example of what I mean: # This is what is currently happening # (I'm truncating…
1
vote
1 answer

How do I set a world background texture in Blender 2.49 using Python?

I'm trying to set a background World Texture in Blender 2.49. I've made a texture: import Blender from Blender import * import bpy world = World.GetCurrent() worldTex = Texture.New('worldTex') worldTex.setType('Image') worldIm =…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
1
vote
1 answer

How can I set UVs to a Mesh in Blender Python?

Using Blender 2.49's Python API I'm creating a mesh. I have a list of vertices and a list of face indices. e.g. mesh = bpy.data.meshes.new('mesh') mesh.verts.extend(mVerts) mesh.faces.extend(mFaces) I've noticed MVert's uvco property and MFace's uv…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
1
vote
1 answer

3d animation from cinema4d to blender

I need to import a mesh animation from Cinema4D into Blender. I tried to do that using Collada.The Collada 1.3 importer doesn't seem to do anything, the Collada 1.4 importer seems to work, but the animation didn't get imported into Blender. After…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
1
vote
1 answer

sys.stdout does not have attribute flush in bpython

I am using bpython for interactive Python sessions and since I updated my system I have the following problem: In bpython3: >>> import sys >>> sys.stdout.flush Traceback (most recent call last): File "", line 1, in AttributeError:…
Marius
  • 523
  • 4
  • 14
1
vote
1 answer

Bpython not working after upgrading to Mavericks

I'm receiving the following error when trying to open bpython in my terminal and I'm not sure how to fix it. I'm new to Python and so I think I may not understand the package system correctly. I'm not sure if there is a conflict from having…
evkline
  • 1,451
  • 3
  • 16
  • 34
1
vote
2 answers

Use BPython as debugger for a Django application

I'm currently developping a Django application and I like using the pdb to know in which state is my application and some stuff like that. I would like to have all the amazing capabilites of BPython inside the debuger... Like autocompletion and…
Depado
  • 4,811
  • 3
  • 41
  • 63
1
vote
0 answers

vim ConqueTerm running bpython LookupError

I am trying to run bpython in my VIM ConqueTerm, but I got the following error: Traceback (most recent call last):stebin Pager Show Source File "/usr/local/bin/bpython", line 8, in load_entry_point('bpython==0.10.1',…
Jerry Gao
  • 1,389
  • 3
  • 13
  • 17
0
votes
1 answer

How do I disable bpython colored output?

bpython by default has a really nice blue theme, but it doesn't go well with light backgrounds. How can I disable its colour output and have it give just plain black (on Arch Linux)?
MrSomeone
  • 71
  • 1
  • 11
0
votes
1 answer

How to use a Python interpreter in a virtual environment

In Linux Mint distro I have installed pyenv and pyenv-virtualenv so I can activate and deactivate an environment with a given Python version. I would like to use bpython or ipython interpreters with an environment but I only can install them with…
user1993416
  • 698
  • 1
  • 9
  • 28