{"action":"closed","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/520","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/520/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/520/events","html_url":"https://github.com/jupyter/notebook/issues/520","id":109270217,"number":520,"title":"Wrong Tooltip with shift-tab","user":{"login":"andram","id":3459178,"avatar_url":"https://avatars.githubusercontent.com/u/3459178?v=3","gravatar_id":"","url":"https://api.github.com/users/andram","html_url":"https://github.com/andram","followers_url":"https://api.github.com/users/andram/followers","following_url":"https://api.github.com/users/andram/following{/other_user}","gists_url":"https://api.github.com/users/andram/gists{/gist_id}","starred_url":"https://api.github.com/users/andram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andram/subscriptions","organizations_url":"https://api.github.com/users/andram/orgs","repos_url":"https://api.github.com/users/andram/repos","events_url":"https://api.github.com/users/andram/events{/privacy}","received_events_url":"https://api.github.com/users/andram/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T10:09:29Z","updated_at":"2015-10-02T14:09:41Z","closed_at":"2015-10-02T14:09:41Z","body":"If a notebook cell starts with a multiline string, then shift-tab gets confused and shows the wrong tooltips for following lines. For example consider a cell containing the following 5 lines:\r\n\r\n    \"\"\"\r\n    Docstring\r\n    \"\"\"\r\n    max()\r\n    min()\r\n\r\nnow position the cursor inside the brackets of max(). Expected behaviour is that the docstring for `max` is shown. Actual behaviour is that the docstring for min is shown. (see attached screenshot for current github version of jupyter notebook)\r\n\r\n![notebook_tooltip_problem](https://cloud.githubusercontent.com/assets/3459178/10218173/b2415676-682c-11e5-8551-708c1dc1ab53.png)\r\n\r\n\r\n"}}