Where do I put IPython configuration files?

前端 未结 1 1106
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 14:51

I have been trying to set my %edit editor to Emacs for a while and made very slow progress.

The IPython 0.13 docs were unclear about how to actually configure this. It t

1条回答
  •  感情败类
    2021-02-07 15:38

    I have c.TerminalInteractiveShell.editor = 'emacsclient' in ~/.config/ipython/profile_default/ipython_config.py and it works.

    If you have trouble finding config location, use ipython locate profile command: http://ipython.org/ipython-doc/rel-0.13/whatsnew/version0.13.html#new-top-level-locate-command

    But I think the easiest way to setup editor is to have something like export EDITOR=emacsclient in your shell setup (e.g. ~/.bashrc).

    0 讨论(0)
提交回复
热议问题