Tuesday, 15 July 2014

python - magic command %edit should invoke IDLE in iPython -



python - magic command %edit should invoke IDLE in iPython -

is possible open idle instead of default vi in linux on executing %edit in ipython? how?

extracted %edit?

%edit runs ipython's editor hook. default version of hook set phone call editor specified $editor environment variable. if isn't found, default vi under linux/unix , notepad under windows. see end of docstring how alter editor hook. can set value of editor via ``terminalinteractiveshell.editor`` alternative in configuration file. useful if wish utilize different editor typical default ipython (and windows users typically don't set environment variables). ....

so guess can set idle in $editor or in .ipython/profile_xxx/[right configfile].py

python ipython python-idle

No comments:

Post a Comment