##// END OF EJS Templates
fix pylab completion
Julian Taylor -
Show More
@@ -60,8 +60,18 b' _ipython()'
60 60 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
61 61 return 0
62 62 elif [[ ${prev} == "--pylab"* ]] || [[ ${prev} == "--gui"* ]]; then
63 _ipython_get_flags core.shellapp InteractiveShellApp.pylab.values
64 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
63 if [ -z "$__ipython_complete_pylab" ]; then
64 __ipython_complete_pylab=$(cat <<EOF | python -
65 try:
66 import IPython.core.shellapp as mod;
67 for k in mod.InteractiveShellApp.pylab.values:
68 print "%s" % k,
69 except:
70 pass
71 EOF
72 )
73 fi
74 COMPREPLY=( $(compgen -W "${__ipython_complete_pylab}" -- ${cur}) )
65 75 elif [[ ${prev} == "--profile"* ]]; then
66 76 if [ -z "$__ipython_complete_profiles" ]; then
67 77 __ipython_complete_profiles=$(cat <<EOF | python -
General Comments 0
You need to be logged in to leave comments. Login now