Show More
@@ -13,9 +13,9 b' _ipython_get_flags()' | |||
|
13 | 13 | opts=$__ipython_complete_last_res |
|
14 | 14 | return |
|
15 | 15 | fi |
|
16 |
# |
|
|
16 | # matplotlib and profile don't need the = and the | |
|
17 | 17 | # version without simplifies the special cased completion |
|
18 |
opts=$(ipython ${url} --help-all | grep -E "^-{1,2}[^-]" | sed -e "s/<.*//" -e "s/[^=]$/& /" -e "s/^-- |
|
|
18 | opts=$(ipython ${url} --help-all | grep -E "^-{1,2}[^-]" | sed -e "s/<.*//" -e "s/[^=]$/& /" -e "s/^--matplotlib=$//" -e "s/^--profile=$/--profile /") | |
|
19 | 19 | __ipython_complete_last="$url $var" |
|
20 | 20 | __ipython_complete_last_res="$opts" |
|
21 | 21 | } |
@@ -86,12 +86,12 b' _ipython()' | |||
|
86 | 86 | elif [[ $mode == "locate" ]]; then |
|
87 | 87 | opts="profile" |
|
88 | 88 | COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
|
89 |
elif [[ ${prev} == "-- |
|
|
90 |
if [ -z "$__ipython_complete_ |
|
|
91 |
__ipython_complete_ |
|
|
89 | elif [[ ${prev} == "--matplotlib"* ]] || [[ ${prev} == "--gui"* ]]; then | |
|
90 | if [ -z "$__ipython_complete_matplotlib" ]; then | |
|
91 | __ipython_complete_matplotlib=`cat <<EOF | python - | |
|
92 | 92 | try: |
|
93 | 93 | import IPython.core.shellapp as mod; |
|
94 |
for k in mod.InteractiveShellApp. |
|
|
94 | for k in mod.InteractiveShellApp.matplotlib.values: | |
|
95 | 95 | print "%s " % k |
|
96 | 96 | except: |
|
97 | 97 | pass |
@@ -99,7 +99,7 b' EOF' | |||
|
99 | 99 | ` |
|
100 | 100 | fi |
|
101 | 101 | local IFS=$'\t\n' |
|
102 |
COMPREPLY=( $(compgen -W "${__ipython_complete_ |
|
|
102 | COMPREPLY=( $(compgen -W "${__ipython_complete_matplotlib}" -- ${cur}) ) | |
|
103 | 103 | elif [[ ${prev} == "--profile"* ]]; then |
|
104 | 104 | if [ -z "$__ipython_complete_profiles" ]; then |
|
105 | 105 | __ipython_complete_profiles=`cat <<EOF | python - |
@@ -13,12 +13,12 b' Categories=Development;Utility;' | |||
|
13 | 13 | StartupNotify=false |
|
14 | 14 | Terminal=false |
|
15 | 15 | Type=Application |
|
16 |
Actions= |
|
|
16 | Actions=Matplotlib;Matplotlibinline; | |
|
17 | 17 | |
|
18 |
[Desktop Action |
|
|
19 | Name=Pylab | |
|
20 |
Exec=ipython qtconsole -- |
|
|
18 | [Desktop Action Matplotlib] | |
|
19 | Name=Matplotlib | |
|
20 | Exec=ipython qtconsole --matplotlib | |
|
21 | 21 | |
|
22 |
[Desktop Action |
|
|
23 |
Name= |
|
|
24 |
Exec=ipython qtconsole -- |
|
|
22 | [Desktop Action Matplotlibinline] | |
|
23 | Name=Matplotlib (inline plots) | |
|
24 | Exec=ipython qtconsole --matplotlib=inline |
General Comments 0
You need to be logged in to leave comments.
Login now