{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter/jupyter_core/pulls/comments/33302004","id":33302004,"diff_hunk":"@@ -143,6 +146,20 @@ def ask():\n         with open(config_file, mode='w') as f:\n             f.write(config_text)\n     \n+    def migrate_config(self):\n+        \"\"\"Migrate config/data from IPython 3\"\"\"\n+        if os.path.exists(os.path.join(self.config_dir, 'migrated')):\n+            # already migrated\n+            return\n+\n+        ipdir = os.environ.get('IPYTHONDIR') or os.path.expanduser('~/.ipython')","path":"jupyter_core/application.py","position":null,"original_position":20,"commit_id":"cdd01a12ca96f5b75501919286662d0b10734833","original_commit_id":"6c81ad4a0780e9a3b80d48ad6ad5134bf8e41c2d","user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"body":"makes sense. Done.","created_at":"2015-06-25T20:36:22Z","updated_at":"2015-06-25T20:36:22Z","html_url":"https://github.com/jupyter/jupyter_core/pull/25#discussion_r33302004","pull_request_url":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter_core/pulls/comments/33302004"},"html":{"href":"https://github.com/jupyter/jupyter_core/pull/25#discussion_r33302004"},"pull_request":{"href":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25","id":38358367,"html_url":"https://github.com/jupyter/jupyter_core/pull/25","diff_url":"https://github.com/jupyter/jupyter_core/pull/25.diff","patch_url":"https://github.com/jupyter/jupyter_core/pull/25.patch","issue_url":"https://api.github.com/repos/jupyter/jupyter_core/issues/25","number":25,"state":"open","locked":false,"title":"migrate config at start of applications","user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"body":"- use logging for migrate output instead of print\n- use .jupyter/migrated to indicate that migration has happened,\n  and shouldn't be rechecked\n- default log-level is INFO, since we seem to always want that","created_at":"2015-06-23T16:52:48Z","updated_at":"2015-06-25T20:36:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"665f5a5335e32e51fdcba75c1743e7a73583c001","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25/commits","review_comments_url":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25/comments","review_comment_url":"https://api.github.com/repos/jupyter/jupyter_core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/jupyter_core/issues/25/comments","statuses_url":"https://api.github.com/repos/jupyter/jupyter_core/statuses/cdd01a12ca96f5b75501919286662d0b10734833","head":{"label":"minrk:migrate-at-start","ref":"migrate-at-start","sha":"cdd01a12ca96f5b75501919286662d0b10734833","user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"repo":{"id":33657505,"name":"jupyter_core","full_name":"minrk/jupyter_core","owner":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/minrk/jupyter_core","description":"Core Jupyter functionality","fork":true,"url":"https://api.github.com/repos/minrk/jupyter_core","forks_url":"https://api.github.com/repos/minrk/jupyter_core/forks","keys_url":"https://api.github.com/repos/minrk/jupyter_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minrk/jupyter_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minrk/jupyter_core/teams","hooks_url":"https://api.github.com/repos/minrk/jupyter_core/hooks","issue_events_url":"https://api.github.com/repos/minrk/jupyter_core/issues/events{/number}","events_url":"https://api.github.com/repos/minrk/jupyter_core/events","assignees_url":"https://api.github.com/repos/minrk/jupyter_core/assignees{/user}","branches_url":"https://api.github.com/repos/minrk/jupyter_core/branches{/branch}","tags_url":"https://api.github.com/repos/minrk/jupyter_core/tags","blobs_url":"https://api.github.com/repos/minrk/jupyter_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minrk/jupyter_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minrk/jupyter_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/minrk/jupyter_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minrk/jupyter_core/statuses/{sha}","languages_url":"https://api.github.com/repos/minrk/jupyter_core/languages","stargazers_url":"https://api.github.com/repos/minrk/jupyter_core/stargazers","contributors_url":"https://api.github.com/repos/minrk/jupyter_core/contributors","subscribers_url":"https://api.github.com/repos/minrk/jupyter_core/subscribers","subscription_url":"https://api.github.com/repos/minrk/jupyter_core/subscription","commits_url":"https://api.github.com/repos/minrk/jupyter_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/minrk/jupyter_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/minrk/jupyter_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/minrk/jupyter_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/minrk/jupyter_core/contents/{+path}","compare_url":"https://api.github.com/repos/minrk/jupyter_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minrk/jupyter_core/merges","archive_url":"https://api.github.com/repos/minrk/jupyter_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minrk/jupyter_core/downloads","issues_url":"https://api.github.com/repos/minrk/jupyter_core/issues{/number}","pulls_url":"https://api.github.com/repos/minrk/jupyter_core/pulls{/number}","milestones_url":"https://api.github.com/repos/minrk/jupyter_core/milestones{/number}","notifications_url":"https://api.github.com/repos/minrk/jupyter_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minrk/jupyter_core/labels{/name}","releases_url":"https://api.github.com/repos/minrk/jupyter_core/releases{/id}","created_at":"2015-04-09T08:27:52Z","updated_at":"2015-04-09T08:27:56Z","pushed_at":"2015-06-25T20:35:55Z","git_url":"git://github.com/minrk/jupyter_core.git","ssh_url":"git@github.com:minrk/jupyter_core.git","clone_url":"https://github.com/minrk/jupyter_core.git","svn_url":"https://github.com/minrk/jupyter_core","homepage":null,"size":247,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jupyter:master","ref":"master","sha":"bb0c0ddc48f3570a68c0bc82e5a825eb5f53830b","user":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"repo":{"id":32897150,"name":"jupyter_core","full_name":"jupyter/jupyter_core","owner":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter/jupyter_core","description":"Core Jupyter functionality","fork":false,"url":"https://api.github.com/repos/jupyter/jupyter_core","forks_url":"https://api.github.com/repos/jupyter/jupyter_core/forks","keys_url":"https://api.github.com/repos/jupyter/jupyter_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter/jupyter_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter/jupyter_core/teams","hooks_url":"https://api.github.com/repos/jupyter/jupyter_core/hooks","issue_events_url":"https://api.github.com/repos/jupyter/jupyter_core/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter/jupyter_core/events","assignees_url":"https://api.github.com/repos/jupyter/jupyter_core/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter/jupyter_core/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter/jupyter_core/tags","blobs_url":"https://api.github.com/repos/jupyter/jupyter_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter/jupyter_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter/jupyter_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter/jupyter_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter/jupyter_core/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter/jupyter_core/languages","stargazers_url":"https://api.github.com/repos/jupyter/jupyter_core/stargazers","contributors_url":"https://api.github.com/repos/jupyter/jupyter_core/contributors","subscribers_url":"https://api.github.com/repos/jupyter/jupyter_core/subscribers","subscription_url":"https://api.github.com/repos/jupyter/jupyter_core/subscription","commits_url":"https://api.github.com/repos/jupyter/jupyter_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter/jupyter_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter/jupyter_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter/jupyter_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter/jupyter_core/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter/jupyter_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter/jupyter_core/merges","archive_url":"https://api.github.com/repos/jupyter/jupyter_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter/jupyter_core/downloads","issues_url":"https://api.github.com/repos/jupyter/jupyter_core/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter/jupyter_core/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter/jupyter_core/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter/jupyter_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter/jupyter_core/labels{/name}","releases_url":"https://api.github.com/repos/jupyter/jupyter_core/releases{/id}","created_at":"2015-03-25T23:35:43Z","updated_at":"2015-06-05T09:22:35Z","pushed_at":"2015-06-25T20:35:55Z","git_url":"git://github.com/jupyter/jupyter_core.git","ssh_url":"git@github.com:jupyter/jupyter_core.git","clone_url":"https://github.com/jupyter/jupyter_core.git","svn_url":"https://github.com/jupyter/jupyter_core","homepage":null,"size":484,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":6,"forks":17,"open_issues":6,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25"},"html":{"href":"https://github.com/jupyter/jupyter_core/pull/25"},"issue":{"href":"https://api.github.com/repos/jupyter/jupyter_core/issues/25"},"comments":{"href":"https://api.github.com/repos/jupyter/jupyter_core/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/jupyter_core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/jupyter_core/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/jupyter_core/statuses/cdd01a12ca96f5b75501919286662d0b10734833"}}}}