{"action":"opened","issue":{"url":"https://api.github.com/repos/rkern/line_profiler/issues/23","labels_url":"https://api.github.com/repos/rkern/line_profiler/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/rkern/line_profiler/issues/23/comments","events_url":"https://api.github.com/repos/rkern/line_profiler/issues/23/events","html_url":"https://github.com/rkern/line_profiler/issues/23","id":66410164,"number":23,"title":"No source is visible in line_profiler output in Jupyter notebook","user":{"login":"oseledets","id":936822,"avatar_url":"https://avatars.githubusercontent.com/u/936822?v=3","gravatar_id":"","url":"https://api.github.com/users/oseledets","html_url":"https://github.com/oseledets","followers_url":"https://api.github.com/users/oseledets/followers","following_url":"https://api.github.com/users/oseledets/following{/other_user}","gists_url":"https://api.github.com/users/oseledets/gists{/gist_id}","starred_url":"https://api.github.com/users/oseledets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oseledets/subscriptions","organizations_url":"https://api.github.com/users/oseledets/orgs","repos_url":"https://api.github.com/users/oseledets/repos","events_url":"https://api.github.com/users/oseledets/events{/privacy}","received_events_url":"https://api.github.com/users/oseledets/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T06:34:32Z","updated_at":"2015-04-05T06:34:32Z","closed_at":null,"body":"I am using the line_profiler extension in IPython 3.0.0 (Jupyter) notebook from Anaconda, but do not get the line numbers in the simplest example:\r\n\r\n```python\r\n%load_ext line_profiler\r\ndef myfun():\r\n    a = 0\r\n        for i in xrange(1000):\r\n            a = a + i\r\n%lprun -f myfun myfun()\r\n````\r\nBut get the output without function lines:\r\n```\r\nTimer unit: 1e-06 s\r\n\r\nFile: <ipython-input-50-9459fcdfcb3c>\r\nFunction: myfun at line 1\r\nTotal time: 0.002182 s\r\n\r\nCould not find file <ipython-input-50-9459fcdfcb3c>\r\nAre you sure you are running this program from the same directory\r\nthat you ran the profiler from?\r\nContinuing without the function's contents.\r\n\r\nLine #      Hits         Time  Per Hit   % Time  Line Contents\r\n==============================================================\r\n     1                                           \r\n     2         1            3      3.0      0.1  \r\n     3      1001         1011      1.0     46.3  \r\n     4      1000         1168      1.2     53.5\r\n```\r\nWhat am I doing wrong? "}}