ipythonrc should be setup for LightBG color scheme by default

Bug #241535 reported by David Dean
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
ipython (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ipython

As IPython is most likely to be used by ubuntu users in gnome-terminal, which uses a white background by default, the IPython color scheme should also default to a light background color, otherwise syntax highlighted python code becomes mostly invisible as the main portion of the code is colored foreground white.

Currently the relevant portion of the ~/.ipython/ipythonrc file looks like this:

...
# colors - Coloring option for prompts and traceback printouts.

# Currently available schemes: NoColor, Linux, LightBG.

# This option allows coloring the prompts and traceback printouts. This
# requires a terminal which can properly handle color escape sequences. If you
# are having problems with this, use the NoColor scheme (uses no color escapes
# at all).

# The Linux option works well in linux console type environments: dark
# background with light fonts.

# LightBG is similar to Linux but swaps dark/light colors to be more readable
# in light background terminals.

# keep uncommented only the one you want:
colors Linux
#colors LightBG
#colors NoColor
...

To work best in gnome-terminal on ubuntu, the LightBG option should be uncommented, and Linux commented:

...
# keep uncommented only the one you want:
#colors Linux
colors LightBG
#colors NoColor
...

ipython:
  Installed: 0.8.1-2
  Candidate: 0.8.1-2
  Version table:
 *** 0.8.1-2 0
        500 http://au.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

Agreed!

Changed in ipython (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

...although this can now be handled with code like this in ipy_user_conf.py:

import IPython.ipapi
ip = IPython.ipapi.get()
...
o = ip.options
...
o.autoexec.append('%colors LightBG')

Revision history for this message
Nikolaus Rath (nikratio) wrote :

Ack! Very annoying (see screenshot)

Revision history for this message
Nikolaus Rath (nikratio) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ipython - 0.10.2-1

---------------
ipython (0.10.2-1) unstable; urgency=low

  * new upstream release. Closes: #622643
  * added Julian Taylor <email address hidden> to uploaders
  * removed Bernd Zeimetz <email address hidden> from uploaders
    thank you for your work
  * Use environment python interpreter. Closes: #547003
  * wrap-and-sort debian/
  * update standard to 3.9.2. no changes needed
  * set default colorscheme to LightBG. LP: #241535
  * converted copyright to DEP5
  * control: removed python:Breaks
 -- Ubuntu Archive Auto-Sync <email address hidden> Sat, 30 Apr 2011 12:56:28 +0000

Changed in ipython (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.