{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/3611","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3611/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3611/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3611/events","html_url":"https://github.com/spyder-ide/spyder/pull/3611","id":185940752,"number":3611,"title":" PR: Remember format for floats in dataframe editor","user":{"login":"jitseniesen","id":7941918,"avatar_url":"https://avatars.githubusercontent.com/u/7941918?v=3","gravatar_id":"","url":"https://api.github.com/users/jitseniesen","html_url":"https://github.com/jitseniesen","followers_url":"https://api.github.com/users/jitseniesen/followers","following_url":"https://api.github.com/users/jitseniesen/following{/other_user}","gists_url":"https://api.github.com/users/jitseniesen/gists{/gist_id}","starred_url":"https://api.github.com/users/jitseniesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitseniesen/subscriptions","organizations_url":"https://api.github.com/users/jitseniesen/orgs","repos_url":"https://api.github.com/users/jitseniesen/repos","events_url":"https://api.github.com/users/jitseniesen/events{/privacy}","received_events_url":"https://api.github.com/users/jitseniesen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jitseniesen","id":7941918,"avatar_url":"https://avatars.githubusercontent.com/u/7941918?v=3","gravatar_id":"","url":"https://api.github.com/users/jitseniesen","html_url":"https://github.com/jitseniesen","followers_url":"https://api.github.com/users/jitseniesen/followers","following_url":"https://api.github.com/users/jitseniesen/following{/other_user}","gists_url":"https://api.github.com/users/jitseniesen/gists{/gist_id}","starred_url":"https://api.github.com/users/jitseniesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitseniesen/subscriptions","organizations_url":"https://api.github.com/users/jitseniesen/orgs","repos_url":"https://api.github.com/users/jitseniesen/repos","events_url":"https://api.github.com/users/jitseniesen/events{/privacy}","received_events_url":"https://api.github.com/users/jitseniesen/received_events","type":"User","site_admin":false},"assignees":[{"login":"jitseniesen","id":7941918,"avatar_url":"https://avatars.githubusercontent.com/u/7941918?v=3","gravatar_id":"","url":"https://api.github.com/users/jitseniesen","html_url":"https://github.com/jitseniesen","followers_url":"https://api.github.com/users/jitseniesen/followers","following_url":"https://api.github.com/users/jitseniesen/following{/other_user}","gists_url":"https://api.github.com/users/jitseniesen/gists{/gist_id}","starred_url":"https://api.github.com/users/jitseniesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitseniesen/subscriptions","organizations_url":"https://api.github.com/users/jitseniesen/orgs","repos_url":"https://api.github.com/users/jitseniesen/repos","events_url":"https://api.github.com/users/jitseniesen/events{/privacy}","received_events_url":"https://api.github.com/users/jitseniesen/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/32","html_url":"https://github.com/spyder-ide/spyder/milestones/v3.1","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/32/labels","id":1818559,"number":32,"title":"v3.1","description":"","creator":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"open_issues":75,"closed_issues":36,"state":"open","created_at":"2016-06-09T20:03:16Z","updated_at":"2016-11-30T01:43:14Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-10-28T14:41:58Z","updated_at":"2016-11-30T15:49:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/3611","html_url":"https://github.com/spyder-ide/spyder/pull/3611","diff_url":"https://github.com/spyder-ide/spyder/pull/3611.diff","patch_url":"https://github.com/spyder-ide/spyder/pull/3611.patch"},"body":"This is #3539 <s>raised from the dead</s> but based now against 3.x branch. \n\nThis pull request is to make Spyder remember the format that the user sets for floats in the DataFrameEditor by storing it in the user configuration settings. Fixes #2728.\n- A new config setting `dataframe_format` is introduced in the variable explorer section in the user config. This setting contains the format, without the leading `%` character (e.g., if the format is `'%.3f'` then the setting is stored as `'.3f'`). The reason for this is that it is apparently impossible to have a config setting with a `%` character, because this is used in `ConfigParser` for interpolation.\n- This setting is passed (after adding a `%` character in the front) from the `VariableExplorer` plugin via the `NamespaceBrowser` and `CollectionEditor` widgets to the `DataFrameEditor` widget, where it is used to set the format for floats.\n- If the user changes the format in the `DataFrameEditor` widget, then this information is passed back using a `sig_option_changed` signal via `CollectionEditor` and `NamespaceBrowser` to `VariableExplorer`. There the leading `%` character is stripped and the format is stored in the user config.\n"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/263908516","html_url":"https://github.com/spyder-ide/spyder/pull/3611#issuecomment-263908516","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3611","id":263908516,"user":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T15:49:42Z","updated_at":"2016-11-30T15:49:42Z","body":"This looks very good to me. I just added some comments to simplify the code a little bit ;-)"}}
{"actor":{"display_login":"ccordoba12"}}