Title: "%matplotlib notebook" required before *every* call to plot? · Issue #4879 · matplotlib/matplotlib · GitHub
Open Graph Title: "%matplotlib notebook" required before *every* call to plot? · Issue #4879 · matplotlib/matplotlib
X Title: "%matplotlib notebook" required before *every* call to plot? · Issue #4879 · matplotlib/matplotlib
Description: The behaviour of "%matplotlib notebook" is different to "%matplotlib inline", I've attached a screenshot, can you help me figure out if this is my machine or if I'm doing something silly? I am expecting both magics to produces similar be...
Open Graph Description: The behaviour of "%matplotlib notebook" is different to "%matplotlib inline", I've attached a screenshot, can you help me figure out if this is my machine or if I'm doing something silly? I am expe...
X Description: The behaviour of "%matplotlib notebook" is different to "%matplotlib inline", I've attached a screenshot, can you help me figure out if this is my machine or if I'm doin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4879
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"%matplotlib notebook\" required before *every* call to plot?","articleBody":"The behaviour of \"%matplotlib notebook\" is different to \"%matplotlib inline\", I've attached a screenshot, can you help me figure out if this is my machine or if I'm doing something silly? I am expecting both magics to produces similar behaviour. I've seen this issue over the last few months in bigger Notebooks and I figured I had other problems but now I've narrowed it down to just the simple case outlined below.\n\nThe problem:\n\n`%matplotlib inline` in a Notebook causes plots to be shown as static images, only 1 call to `%matplotlib inline` is required.\n\n`%matplotlib notebook` in a Notebook enables some interactive features. I have to call this before _every_ plot otherwise I get a non-rendered object in return.\n\nHere I only use `%matplotlib notebook`. The second plot is not rendered. For the third plot I force another call to `%matplotlib notebook` and the third image is rendered.\n\n\n\nHere I first use `%matplotlib inline` and then `%matplotlib notebook`. The final plot (second for `notebook`) doesn't render: \n\n\n\nI'm using:\n- Linux Mint 17.2 (Ubuntu 14.04) 64bit\n- Python 3.4.3 (Anaconda 64 bit)\n- IPython 3.2 and Notebook 3.2.0-8b0eef4\n- matplotlib 1.4.3\n\nMaybe I'm being foolish and the point of `%matplotlib notebook` is to only allow 1 plot to be interactive, so you have to choose which one? And then after switch back to `%matplotlib inline`?\n\nAny thoughts to clear up my muddled mind would be gladly received. i.\n","author":{"url":"https://github.com/ianozsvald","@type":"Person","name":"ianozsvald"},"datePublished":"2015-08-07T08:48:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/4879/matplotlib/issues/4879"}
| 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:68164aea-3d52-3042-1891-32f8a41e0bc1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD44:1D5589:1C66895:25C6EC3:6A52D66A |
| html-safe-nonce | 378e411726aceee96d1049e240367609efbd7733ba1b0ebdda51e7375a567484 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDQ0OjFENTU4OToxQzY2ODk1OjI1QzZFQzM6NkE1MkQ2NkEiLCJ2aXNpdG9yX2lkIjoiNjk5Mjg0MTQ3NDIzMzc4MzkxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 25d650c2f89bd1092a9f35614809cdba48b66ed6859ea209fe481aa2651565a4 |
| hovercard-subject-tag | issue:99607827 |
| 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/4879/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2fe0a19c9dd55d1cddec74a8666652e31c30cabc352111894e2d57367cd133f/matplotlib/matplotlib/issues/4879 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2fe0a19c9dd55d1cddec74a8666652e31c30cabc352111894e2d57367cd133f/matplotlib/matplotlib/issues/4879 |
| og:image:alt | The behaviour of "%matplotlib notebook" is different to "%matplotlib inline", I've attached a screenshot, can you help me figure out if this is my machine or if I'm doing something silly? I am expe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ianozsvald |
| 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