GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing pythonadventures.wordpress.com — bpython – Python Adventures Python AdventuresWelcome to the Jungle!
Archive
Posts Tagged ‘bpython’
make bpython use Python 3Problem How could I have another Solution In a previous post I showed how to patch $ cd $ mkdir bpython_python3 $ cd bpython_python3 $ mkvirtualenv bpython_python3 # creates a Python 3 virt. env. (bpython_python3)$ pip install bpython (bpython_python3)$ which bpython /home/jabba/.virtualenvs/bpython_python3/bin/bpython # sample; will be different in your case (bpython_python3)$ deactivate $ I suggest adding the following aliases to your alias bpy='bpython' alias bpy3='/home/jabba/.virtualenvs/bpython_python3/bin/bpython' Of course, you need to customize the path for Now “ bpython config file for light backgroundProblem Solution
# This is a standard python config file # Valid values can be True, False, integer numbers, strings # By default bpython will look for ~/.bpython/config or you can specify a file # with the -c option on the command line # General section tag [general] # Display the autocomplete list as you type (default: True). # When this is off, you can hit tab to see the suggestions. auto_display_list = True # Syntax highlighting as you type (default: True). syntax = True # Display the arg spec (list of arguments) for callables, # when possible (default: True). arg_spec = True # History file (default: ~/.pythonhist): hist_file = ~/.pythonhist # Number of lines to store in history (set to 0 to disable) (default: 100): hist_len = 100 # Soft tab size (default: 4, see pep-8): tab_length = 4 # Color schemes should be put in ~/.bpython/ # e.g. to use the theme ~/.bpython/foo.theme set color_scheme = foo # Leave blank or set to "default" to use the default theme #color_scheme = default color_scheme = jabba [keyboard] pastebin = F8 save = C-s
# Each letter represents a colour marker: # k, r, g, y, b, m, c, w, d # which stands for: # blacK, Red, Green, Yellow, Blue, Magenta, Cyan, White, Default # Capital letters represent bold # Copy to ~/.bpython/foo.theme and set "color_scheme = foo" in # ~/.bpython/config [syntax] keyword = B name = r comment = b string = g error = r number = B operator = b paren = b punctuation = b token = g [interface] # XXX: gnome-terminal appears to be braindead. The cursor will disappear unless # you set the background colour to "d". background = d output = b main = b prompt = b prompt_more = g Update (20160214)
Categories: python
Tags: bpython, color scheme, color theme, light background
Add History and Tab Completion to the Default Python ShellProblem Solution # ~/.bashrc export PYTHONSTARTUP=$HOME/.pythonstartup.py Download
Categories: python
Tags: bpython, history, ipython, python shell, tab completion
the bpython interpreter“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:
For more, see our about-page or just skip right to the screenshots.” Installation sudo apt-get install bpython Tip: add the following line to your alias bpy='bpython' Then you can start the bpython interpreter with “ Alternatives
Categories: python
Tags: bpython, interpreter, ipython, python shell
Blog Stats
Random PostRecent Postsascii
bash
beautifulsoup
book
bpython
challenge
command-line
convert
cron
crontab
date
datetime
distance
dropbox
email
eric
exercise
extract
file
firefox
github
google
hacking
heroku
html
ide
imdb
imgur
install
ipython
java
jinja2
json
linux
module
modules
MongoDB
movies
news
pdf
perl
pi
pip
print
pylint
pypi
python3
python shell
quote
readline
reddit
redirect
refactoring
regexp
requests
reverse
review
shell
sound
stdout
string
tab
text
threads
time
tip
tutorial
unicode
url
video
virtualenv
virtual environment
virtualenvwrapper
xml
zip Archives
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |