Title: %paste does not retrieve clipboard contents under screen/tmux on OS X · Issue #2253 · ipython/ipython · GitHub
Open Graph Title: %paste does not retrieve clipboard contents under screen/tmux on OS X · Issue #2253 · ipython/ipython
X Title: %paste does not retrieve clipboard contents under screen/tmux on OS X · Issue #2253 · ipython/ipython
Description: ipython --quick inside either tmux or screen (bug seen in both screen and tmux, in 0.14.dev 079f8ed as well as rel-0.13, but not rel-0.12) Copy text to clipboard %paste This fails to retrieve text from the clipboard under OS X 10.6.8. In...
Open Graph Description: ipython --quick inside either tmux or screen (bug seen in both screen and tmux, in 0.14.dev 079f8ed as well as rel-0.13, but not rel-0.12) Copy text to clipboard %paste This fails to retrieve text ...
X Description: ipython --quick inside either tmux or screen (bug seen in both screen and tmux, in 0.14.dev 079f8ed as well as rel-0.13, but not rel-0.12) Copy text to clipboard %paste This fails to retrieve text ...
Opengraph URL: https://github.com/ipython/ipython/issues/2253
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"%paste does not retrieve clipboard contents under screen/tmux on OS X","articleBody":"1. `ipython --quick` inside either tmux or screen (bug seen in both screen and tmux, in 0.14.dev 079f8edc2bb42d1c6ce3f0033cacd4030c0bd29a as well as rel-0.13, but not rel-0.12)\n2. Copy text to clipboard\n3. `%paste`\n4. This fails to retrieve text from the clipboard under OS X 10.6.8. In recent ipython the empty paste throws the exception seen below (see #2252)\n\n```\n~ env | grep screen\nTERM=screen\n~ ipython --quick\nPython 2.7.2 (default, Aug 4 2011, 16:59:19)\nType \"copyright\", \"credits\" or \"license\" for more information.\n\nIPython 0.14.dev -- An enhanced Interactive Python.\n? -\u003e Introduction and overview of IPython's features.\n%quickref -\u003e Quick reference.\nhelp -\u003e Python's own help system.\nobject? -\u003e Details about 'object', use 'object??' for extra details.\n\nIn [1]: import IPython ; IPython.__version__\nOut[1]: '0.14.dev'\n\nIn [2]: a = 1 # I used cmd-v to paste this\n\nIn [3]: %paste\n\n\n## -- End pasted text --\n---------------------------------------------------------------------------\nIndexError Traceback (most recent call last)\n\u003cipython-input-3-da94f22893b1\u003e in \u003cmodule\u003e()\n----\u003e 1 get_ipython().magic(u'paste')\n\n/Users/davison/lib/python/ipython/IPython/core/interactiveshell.py in magic(self, arg_s)\n 2167 magic_name, _, magic_arg_s = arg_s.partition(' ')\n 2168 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)\n-\u003e 2169 return self.run_line_magic(magic_name, magic_arg_s)\n 2170\n 2171 #-------------------------------------------------------------------------\n\n/Users/davison/lib/python/ipython/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)\n 2093 args.append(sys._getframe(stack_depth).f_locals)\n 2094 with self.builtin_trap:\n-\u003e 2095 result = fn(*args)\n 2096 return result\n 2097\n\n/Users/davison/lib/python/ipython/IPython/frontend/terminal/interactiveshell.py in paste(self, parameter_s)\n\n/Users/davison/lib/python/ipython/IPython/core/magic.py in \u003clambda\u003e(f, *a, **k)\n 189 # but it's overkill for just that one bit of state.\n 190 def magic_deco(arg):\n--\u003e 191 call = lambda f, *a, **k: f(*a, **k)\n 192\n 193 if callable(arg):\n\n/Users/davison/lib/python/ipython/IPython/frontend/terminal/interactiveshell.py in paste(self, parameter_s)\n 288 write(\"## -- End pasted text --\\n\")\n 289\n--\u003e 290 self.store_or_execute(block, name)\n 291\n 292 # Class-level: add a '%cls' magic only on Windows\n\n/Users/davison/lib/python/ipython/IPython/frontend/terminal/interactiveshell.py in store_or_execute(self, block, name)\n 151 \"\"\" Execute a block, or store it in a variable, per the user's request.\n 152 \"\"\"\n--\u003e 153 b = self.cleanup_input(block)\n 154 if name:\n 155 # If storing it for further editing\n\n/Users/davison/lib/python/ipython/IPython/frontend/terminal/interactiveshell.py in cleanup_input(self, block)\n 117 # Remove email quotes first. These must be consistently applied to\n 118 # *all* lines to be removed\n--\u003e 119 b = strip_email_quotes(b)\n 120\n 121 # Split the input into independent sub-blocks so we can later do\n\n/Users/davison/lib/python/ipython/IPython/utils/text.py in strip_email_quotes(text)\n 600 break\n 601 else:\n--\u003e 602 prefix = long_substr(list(matches))\n 603 if prefix:\n 604 strip = len(prefix)\n\n/Users/davison/lib/python/ipython/IPython/utils/text.py in long_substr(data)\n 555 substr = data[0][i:i+j]\n 556 else:\n--\u003e 557 substr = data[0]\n 558 return substr\n 559\n\nIndexError: list index out of range\n```\n","author":{"url":"https://github.com/dandavison","@type":"Person","name":"dandavison"},"datePublished":"2012-08-04T22:10:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/2253/ipython/issues/2253"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:69c1c160-560a-8c5c-95c8-fb791ff8c046 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CAD4:2C8354:315C77D:4720381:6A552D3A |
| html-safe-nonce | 379f82a8e99ed66b09d2f50142b2d3e347e8bd42ad34d8f51e278dc7be4af34b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUQ0OjJDODM1NDozMTVDNzdEOjQ3MjAzODE6NkE1NTJEM0EiLCJ2aXNpdG9yX2lkIjoiMTcxMzU2Mjk4NzkwNDk3MDA0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c20e9fca08c6d1f3d4acb8814a8a1311e6f4d278e88232f3280fdd385def0c91 |
| hovercard-subject-tag | issue:6033196 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ipython/ipython/2253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/299f0aef3955adfdcf9b088ebc5f957128e0edd8ad0171ea3f02d9f68b21c4cd/ipython/ipython/issues/2253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/299f0aef3955adfdcf9b088ebc5f957128e0edd8ad0171ea3f02d9f68b21c4cd/ipython/ipython/issues/2253 |
| og:image:alt | ipython --quick inside either tmux or screen (bug seen in both screen and tmux, in 0.14.dev 079f8ed as well as rel-0.13, but not rel-0.12) Copy text to clipboard %paste This fails to retrieve text ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dandavison |
| hostname | github.com |
| expected-hostname | github.com |
| None | fbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89 |
| turbo-cache-control | no-preview |
| go-import | github.com/ipython/ipython git https://github.com/ipython/ipython.git |
| octolytics-dimension-user_id | 230453 |
| octolytics-dimension-user_login | ipython |
| octolytics-dimension-repository_id | 658518 |
| octolytics-dimension-repository_nwo | ipython/ipython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 658518 |
| octolytics-dimension-repository_network_root_nwo | ipython/ipython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf96660b44878f418b09d3d6ecde00ad62332910 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width