Skip to content


Subversion checkout URL

You can clone with
Download ZIP


don't move old config files, keep nagging the user #565

merged 1 commit into from

2 participants


I think it will lead to a better user experience for users
transitioning to 0.11 if old config files are preserved and not
moved to get an additional .old extension the first time ipython
sees them.

My rationale is that it's a little too helpful to move the old
files out of the way and not see the warning ever again, because
if the user missed it the first time, it'll never come up again.

The whole point of the "nag" message is to force the user to
acknowledge and accept the presence of a new configuration
system, the first step of which can be as simple as adding
c.InteractiveShellApp.ignore_old_config=True to it.

@minrk minrk merged commit 240dd60 into ipython:master
@ellisonbg ellisonbg referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 9, 2011
  1. @ivanov
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 9 deletions.
  1. +3 −9 IPython/utils/
12 IPython/utils/
@@ -434,13 +434,7 @@ def check_for_old_config(ipython_dir=None):
if filehash(f) == old_config_md5.get(cfg, ''):
- oldf = f+'.old'
- i = 0
- while os.path.exists(oldf):
- oldf = f+'.old.%i'%i
- i += 1
- os.rename(f, oldf)
- warn.warn("Renamed old IPython config file '%s' to '%s'." % (f, oldf))
+ warn.warn("Found old IPython config file %r (modified by user)"%f)
warned = True
if warned:
@@ -451,6 +445,6 @@ def check_for_old_config(ipython_dir=None):
To start configuring IPython, do `ipython profile create`, and edit
`` in <ipython_dir>/profile_default.
If you need to leave the old config files in place for an older version of
- IPython, set `c.InteractiveShellApp.ignore_old_config=True` in the new config.""")
+ IPython and want to suppress this warning message, set
+ `c.InteractiveShellApp.ignore_old_config=True` in the new config.""")
Something went wrong with that request. Please try again.