Title: mpl_connect does not write output to jupyter notebook · Issue #6948 · matplotlib/matplotlib · GitHub
Open Graph Title: mpl_connect does not write output to jupyter notebook · Issue #6948 · matplotlib/matplotlib
X Title: mpl_connect does not write output to jupyter notebook · Issue #6948 · matplotlib/matplotlib
Description: Hi, I have: notebook 4.2.1 matplotlib 1.5.1 Python 3.5.2 running on Ubuntu I setup my env through conda. An example from the docs that uses mpl_connect: http://matplotlib.org/users/event_handling.html#event-attributes from matplotlib imp...
Open Graph Description: Hi, I have: notebook 4.2.1 matplotlib 1.5.1 Python 3.5.2 running on Ubuntu I setup my env through conda. An example from the docs that uses mpl_connect: http://matplotlib.org/users/event_handling.h...
X Description: Hi, I have: notebook 4.2.1 matplotlib 1.5.1 Python 3.5.2 running on Ubuntu I setup my env through conda. An example from the docs that uses mpl_connect: http://matplotlib.org/users/event_handling.h...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6948
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mpl_connect does not write output to jupyter notebook","articleBody":"Hi, I have:\n- notebook 4.2.1\n- matplotlib 1.5.1\n- Python 3.5.2\n- running on Ubuntu\n\nI setup my env through conda.\n\nAn example from the docs that uses mpl_connect: http://matplotlib.org/users/event_handling.html#event-attributes\n\n```\nfrom matplotlib import pyplot as plt\n\nclass LineBuilder:\n def __init__(self, line):\n self.line = line\n self.xs = list(line.get_xdata())\n self.ys = list(line.get_ydata())\n self.cid = line.figure.canvas.mpl_connect('button_press_event', self)\n\n def __call__(self, event):\n print('click', event)\n if event.inaxes!=self.line.axes: return\n self.xs.append(event.xdata)\n self.ys.append(event.ydata)\n self.line.set_data(self.xs, self.ys)\n self.line.figure.canvas.draw()\n\nfig = plt.figure()\nax = fig.add_subplot(111)\nax.set_title('click to build line segments')\nline, = ax.plot([0], [0]) # empty line\nlinebuilder = LineBuilder(line)\n\nplt.show()\n```\n\nThe `print('click', event)` line does not show any output in my Jupyter notebooks.\n","author":{"url":"https://github.com/michalsustr","@type":"Person","name":"michalsustr"},"datePublished":"2016-08-15T20:29:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/6948/matplotlib/issues/6948"}
| 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:ed5e01cc-181b-3779-a740-f0bf7fb9f247 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFBA:228F1C:FE9085:1591F7A:6A5334F6 |
| html-safe-nonce | 3a72f821c5beaf89f6927d653050c957d6f7e6fdcfcf380dec3332a493356d0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkJBOjIyOEYxQzpGRTkwODU6MTU5MUY3QTo2QTUzMzRGNiIsInZpc2l0b3JfaWQiOiI2NzI3MDAxMjQ3OTI3NDQ4ODIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4e60ee2f6bdd0cb41521ffc55cd982d8882bd9c63fd36e79b841b549e2f28aa1 |
| hovercard-subject-tag | issue:171254456 |
| 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/matplotlib/matplotlib/6948/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78bd80fb3cf5f8811dd0b42d7705bf3fd763fff2f7ae5643d74c386d64c14c53/matplotlib/matplotlib/issues/6948 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78bd80fb3cf5f8811dd0b42d7705bf3fd763fff2f7ae5643d74c386d64c14c53/matplotlib/matplotlib/issues/6948 |
| og:image:alt | Hi, I have: notebook 4.2.1 matplotlib 1.5.1 Python 3.5.2 running on Ubuntu I setup my env through conda. An example from the docs that uses mpl_connect: http://matplotlib.org/users/event_handling.h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | michalsustr |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width