{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipython/issues/9866","repository_url":"https://api.github.com/repos/ipython/ipython","labels_url":"https://api.github.com/repos/ipython/ipython/issues/9866/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipython/issues/9866/comments","events_url":"https://api.github.com/repos/ipython/ipython/issues/9866/events","html_url":"https://github.com/ipython/ipython/issues/9866","id":170836021,"number":9866,"title":" How to set InteractiveShellApp config options like ```c.InteractiveShellApp.exec_lines``` use jupyter4.2.1","user":{"login":"Anne623","id":10845504,"avatar_url":"https://avatars.githubusercontent.com/u/10845504?v=3","gravatar_id":"","url":"https://api.github.com/users/Anne623","html_url":"https://github.com/Anne623","followers_url":"https://api.github.com/users/Anne623/followers","following_url":"https://api.github.com/users/Anne623/following{/other_user}","gists_url":"https://api.github.com/users/Anne623/gists{/gist_id}","starred_url":"https://api.github.com/users/Anne623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anne623/subscriptions","organizations_url":"https://api.github.com/users/Anne623/orgs","repos_url":"https://api.github.com/users/Anne623/repos","events_url":"https://api.github.com/users/Anne623/events{/privacy}","received_events_url":"https://api.github.com/users/Anne623/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ipython/ipython/milestones/11","html_url":"https://github.com/ipython/ipython/milestones/no%20action","labels_url":"https://api.github.com/repos/ipython/ipython/milestones/11/labels","id":247447,"number":11,"title":"no action","description":"A milestone for closed or open issues for which there is no action needed.\r\n\r\n- duplicate\r\n- not a bug\r\n- just a question / discussion, nothing to resolve\r\n- wontfix\r\n- etc.","creator":{"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},"open_issues":36,"closed_issues":2165,"state":"open","created_at":"2013-01-19T01:33:01Z","updated_at":"2016-08-14T17:25:37Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-08-12T09:46:23Z","updated_at":"2016-08-16T03:55:56Z","closed_at":null,"body":"Hi, All.\r\nNow I use jupyter notebook 4.2.1, I want to exec lines when IPython start up. In IPython 3.x, I use the config file ```ipython_config.py```, and set ```c.InteractiveShellApp.exec_lines```. But now i use jupyter notebook 4.2.1, I don't know how to set this."},"comment":{"url":"https://api.github.com/repos/ipython/ipython/issues/comments/239994967","html_url":"https://github.com/ipython/ipython/issues/9866#issuecomment-239994967","issue_url":"https://api.github.com/repos/ipython/ipython/issues/9866","id":239994967,"user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T03:55:56Z","updated_at":"2016-08-16T03:55:56Z","body":"Sorry I was uncler @Anne623 ; \r\n\r\nJupyter has it's own set of config (likely in `~/.jupyter` for you), and these configuration only affect the Jupyter components; not each individual kernels.\r\n\r\n The IPython configuration have not moved, they are likely in `~/.ipython` for you, but you can check with `$ ipython locate`.\r\n\r\nI know it is confusing as we are the same people that use both Jupyter and IPython, but as IPython is used by users that don't install Jupyter, and Jupyter is used by users that don't write Python, we tend to think of both project independently, and store configuration in separate directories.\r\n\r\nDoes that makes sens ? We are always looking for better ways to express the Jupyter vs IPython differences.\r\n\r\nFor example here is my IPython config, where I srip all the comments:\r\n\r\n```\r\n$ cat ~/.ipython/profile_default/ipython_config.py  | grep -v '#'\r\n\r\nc.InteractiveShellApp.exec_lines = ['test = \"isusse 9866 for Anne623\"']\r\n```\r\n\r\nWith that, both the `ipython` accessed from the command line REPL and the Jupyter notebook have theses lines executed at startup.\r\n\r\n"}}
{"actor":{"display_login":"Carreau"}}