Modifications to profile list #1176

Merged
merged 2 commits into from Dec 18, 2011

Projects

None yet

2 participants

@minrk
IPython member

Includes bundled profiles in ipython profile list output,
and segments output into: bundled, ipdir, cwd.

Per @fperez suggestion

Sample output:

minrk@Mercury[14:10]~/dev/ip/mine (profilelist) $ ipython profile list

Available profiles in IPython:
    ipython --profile=cluster
    ipython --profile=math
    ipython --profile=pysh
    ipython --profile=python3
    ipython --profile=sympy

    The first request for a bundled profile will copy it
    into your IPython directory (/Users/minrk/.ipython),
    where you can customize it to your needs.

Available profiles in /Users/minrk/.ipython:
    ipython --profile=0.11
    ipython --profile=cluster
    ipython --profile=default
    ipython --profile=foo
    ipython --profile=food
    ipython --profile=fresh
    ipython --profile=føø
    ipython --profile=go
    ipython --profile=iptest
    ipython --profile=math
    ipython --profile=mpi
    ipython --profile=neuro
    ipython --profile=password
    ipython --profile=pylab
    ipython --profile=pysh
    ipython --profile=python3
    ipython --profile=sge
    ipython --profile=sh
    ipython --profile=ssh
    ipython --profile=sympy
    ipython --profile=temp

Available profiles in current directory (/Users/minrk/dev/ip/mine):
    ipython --profile=carrot
@minrk minrk Modifications to profile list
Includes bundled profiles in `ipython profile list` output,
and segments output into: bundled, IPYTHONDIR, cwd.
fdc48d5
@fperez
IPython member

While I see the copy/paste value of printing them this way, I think it makes for a busy layout. How about we just print the profile names alone, and at the bottom print a single explanation line that says something like

```To use any of the above profiles, use

ipython --profile


I think it would make for a more easy to read output.
@minrk
IPython member

I like the copy/paste format a tiny bit better, but I'll defer to you. Pushed with recommended change.

@fperez
IPython member

I love it, thanks a lot. Will complete running the test suite locally, and if all passes will merge it right away.

@fperez fperez merged commit c5e6514 into ipython:master Dec 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment