{"action":"created","issue":{"url":"https://api.github.com/repos/inducer/pudb/issues/176","repository_url":"https://api.github.com/repos/inducer/pudb","labels_url":"https://api.github.com/repos/inducer/pudb/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/inducer/pudb/issues/176/comments","events_url":"https://api.github.com/repos/inducer/pudb/issues/176/events","html_url":"https://github.com/inducer/pudb/issues/176","id":145144526,"number":176,"title":"How Do I use Pudb In Ipython Notebook","user":{"login":"xylophone234","id":7993594,"avatar_url":"https://avatars.githubusercontent.com/u/7993594?v=3","gravatar_id":"","url":"https://api.github.com/users/xylophone234","html_url":"https://github.com/xylophone234","followers_url":"https://api.github.com/users/xylophone234/followers","following_url":"https://api.github.com/users/xylophone234/following{/other_user}","gists_url":"https://api.github.com/users/xylophone234/gists{/gist_id}","starred_url":"https://api.github.com/users/xylophone234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xylophone234/subscriptions","organizations_url":"https://api.github.com/users/xylophone234/orgs","repos_url":"https://api.github.com/users/xylophone234/repos","events_url":"https://api.github.com/users/xylophone234/events{/privacy}","received_events_url":"https://api.github.com/users/xylophone234/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T10:29:00Z","updated_at":"2016-04-01T12:56:01Z","closed_at":"2016-04-01T12:56:01Z","body":"in ipython\r\nimport pudb.ipython\r\n%pudb script.py\r\nit works well.\r\nBut in ipython notebook,\r\n%pudb createtree0.py\r\n\r\n\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-9-a10b15855802> in <module>()\r\n----> 1 get_ipython().magic(u'pudb createtree0.py')\r\n\r\n/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)\r\n   2161         magic_name, _, magic_arg_s = arg_s.partition(' ')\r\n   2162         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)\r\n-> 2163         return self.run_line_magic(magic_name, magic_arg_s)\r\n   2164 \r\n   2165     #-------------------------------------------------------------------------\r\n\r\n/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)\r\n   2082                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals\r\n   2083             with self.builtin_trap:\r\n-> 2084                 result = fn(*args,**kwargs)\r\n   2085             return result\r\n   2086 \r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/ipython.pyc in pudb(line)\r\n    106 \r\n    107         from pudb import runscript\r\n--> 108         runscript(path, args)\r\n    109     register_line_magic(pudb)\r\n    110 \r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/__init__.pyc in runscript(mainpyfile, args, pre_run, steal_output)\r\n     82         except:\r\n     83             dbg.post_mortem = True\r\n---> 84             dbg.interaction(None, sys.exc_info())\r\n     85 \r\n     86         while True:\r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/debugger.pyc in interaction(self, frame, exc_tuple, show_exc_dialog)\r\n    337 \r\n    338         self.ui.call_with_ui(self.ui.interaction, exc_tuple,\r\n--> 339                 show_exc_dialog=show_exc_dialog)\r\n    340 \r\n    341     def get_stack_situation_id(self):\r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/debugger.pyc in call_with_ui(self, f, *args, **kwargs)\r\n   2057         self.show()\r\n   2058         try:\r\n-> 2059             return f(*args, **kwargs)\r\n   2060         finally:\r\n   2061             self.hide()\r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/debugger.pyc in interaction(self, exc_tuple, show_exc_dialog)\r\n   2257         if self.debugger.post_mortem:\r\n   2258             if show_exc_dialog and exc_tuple is not None:\r\n-> 2259                 self.show_exception_dialog(exc_tuple)\r\n   2260 \r\n   2261             caption.extend([\r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/debugger.pyc in show_exception_dialog(self, exc_tuple)\r\n   2003                     buttons_and_results=[\r\n   2004                         (\"OK\", True),\r\n-> 2005                         (\"Save traceback\", \"save\"),\r\n   2006                         ])\r\n   2007 \r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/debugger.pyc in dialog(self, content, buttons_and_results, title, bind_enter_esc, focus_buttons, extra_bindings)\r\n   1976         w = Attr(w, \"background\")\r\n   1977 \r\n-> 1978         return self.event_loop(w)[0]\r\n   1979 \r\n   1980     @staticmethod\r\n\r\n/usr/local/lib/python2.7/dist-packages/pudb-2016.1-py2.7.egg/pudb/debugger.pyc in event_loop(self, toplevel)\r\n   2230                 canvas = toplevel.render(self.size, focus=True)\r\n   2231                 self.screen.draw_screen(self.size, canvas)\r\n-> 2232                 keys = self.screen.get_input()\r\n   2233 \r\n   2234                 for k in keys:\r\n\r\n/usr/local/lib/python2.7/dist-packages/urwid-1.3.1-py2.7-linux-x86_64.egg/urwid/raw_display.pyc in get_input(self, raw_keys)\r\n    323 \r\n    324         self._wait_for_input_ready(self._next_timeout)\r\n--> 325         keys, raw = self.parse_input(None, None, self.get_available_raw_input())\r\n    326 \r\n    327         # Avoid pegging CPU at 100% when slowly resizing\r\n\r\n/usr/local/lib/python2.7/dist-packages/urwid-1.3.1-py2.7-linux-x86_64.egg/urwid/raw_display.pyc in get_available_raw_input(self)\r\n    425         implementation; you can safely ignore it if you implement your own.\r\n    426         \"\"\"\r\n--> 427         codes = self._get_gpm_codes() + self._get_keyboard_codes()\r\n    428 \r\n    429         if self._partial_codes:\r\n\r\n/usr/local/lib/python2.7/dist-packages/urwid-1.3.1-py2.7-linux-x86_64.egg/urwid/raw_display.pyc in _get_keyboard_codes(self)\r\n    499         codes = []\r\n    500         while True:\r\n--> 501             code = self._getch_nodelay()\r\n    502             if code < 0:\r\n    503                 break\r\n\r\n/usr/local/lib/python2.7/dist-packages/urwid-1.3.1-py2.7-linux-x86_64.egg/urwid/raw_display.pyc in _getch_nodelay(self)\r\n    633 \r\n    634     def _getch_nodelay(self):\r\n--> 635         return self._getch(0)\r\n    636 \r\n    637 \r\n\r\n/usr/local/lib/python2.7/dist-packages/urwid-1.3.1-py2.7-linux-x86_64.egg/urwid/raw_display.pyc in _getch(self, timeout)\r\n    543                 self.gpm_event_pending = True\r\n    544         if self._term_input_file.fileno() in ready:\r\n--> 545             return ord(os.read(self._term_input_file.fileno(), 1))\r\n    546         return -1\r\n    547 \r\n\r\nTypeError: ord() expected a character, but string of length 0 found\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/inducer/pudb/issues/comments/204388730","html_url":"https://github.com/inducer/pudb/issues/176#issuecomment-204388730","issue_url":"https://api.github.com/repos/inducer/pudb/issues/176","id":204388730,"user":{"login":"inducer","id":352067,"avatar_url":"https://avatars.githubusercontent.com/u/352067?v=3","gravatar_id":"","url":"https://api.github.com/users/inducer","html_url":"https://github.com/inducer","followers_url":"https://api.github.com/users/inducer/followers","following_url":"https://api.github.com/users/inducer/following{/other_user}","gists_url":"https://api.github.com/users/inducer/gists{/gist_id}","starred_url":"https://api.github.com/users/inducer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inducer/subscriptions","organizations_url":"https://api.github.com/users/inducer/orgs","repos_url":"https://api.github.com/users/inducer/repos","events_url":"https://api.github.com/users/inducer/events{/privacy}","received_events_url":"https://api.github.com/users/inducer/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T12:56:00Z","updated_at":"2016-04-01T12:56:00Z","body":"There's no support for Ipython/Jupyter Notebook."}}