Title: Pickling imshow fails (?due to _imcache) · Issue #3614 · matplotlib/matplotlib · GitHub
Open Graph Title: Pickling imshow fails (?due to _imcache) · Issue #3614 · matplotlib/matplotlib
X Title: Pickling imshow fails (?due to _imcache) · Issue #3614 · matplotlib/matplotlib
Description: Pickling imshow objects (I'm using them used for heatmaps) fails with the following error in IPython after %matplotlib inline magic has been used. If inline figures are not set they work as expected. UnpickleableError: Cannot pickle Open Graph Description: Pickling imshow objects (I'm using them used for heatmaps) fails with the following error in IPython after %matplotlib inline magic has been used. If inline figures are not set they work as expecte...
X Description: Pickling imshow objects (I'm using them used for heatmaps) fails with the following error in IPython after %matplotlib inline magic has been used. If inline figures are not set they work as exp...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3614
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pickling imshow fails (?due to _imcache)","articleBody":"Pickling `imshow` objects (I'm using them used for heatmaps) fails with the following error in IPython after `%matplotlib inline` magic has been used. If inline figures are not set they work as expected.\n\n```\nUnpickleableError: Cannot pickle \u003ctype 'Image'\u003e objects\n```\n\nUsing `matplotlib.tests.test_pickle.recursive_pickle` fails reporting the following (similar to #1719):\n\n```\nFailed to pickle attribute \"gridline\" in (list/tuple item #0 in (attribute \"majorTicks\" in (attribute \"xaxis\" in (list/tuple item #1 in (list/tuple item #1 in (list/tuple item #0 in (attribute \"_elements\" in (attribute \"_axstack\" in (top level object))))))))). Type: \u003cclass 'matplotlib.lines.Line2D'\u003e\n```\n\nHowever, using `matplotlib.tests.test_pickle.depth_getter` its possible to identify the object that is the cause of the initial error. It's at:\n\n```\n140628613187224 (8, \u003cImage object at 0x7fe6a688c698\u003e, u'attribute \"_imcache\" in (list/tuple item #0 in (attribute \"images\" in (list/tuple item #1 in (list/tuple item #1 in (list/tuple item #0 in (attribute \"_elements\" in (attribute \"_axstack\" in (top level object))))))))')\n```\n\nIt looks as though this is a cache of the rendered image. Can these be ignored when pickling?\n","author":{"url":"https://github.com/mfitzp","@type":"Person","name":"mfitzp"},"datePublished":"2014-10-03T11:50:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3614/matplotlib/issues/3614"}
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:9069e0fe-dc75-850d-9589-2873d2ee0869 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 905C:25EC2E:24C3D7A:317E549:6A539356 html-safe-nonce daf0a8ba1fce99a04d5fdff0881eaba220c0dbceb4ba480542127e08623ff03f visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDVDOjI1RUMyRToyNEMzRDdBOjMxN0U1NDk6NkE1MzkzNTYiLCJ2aXNpdG9yX2lkIjoiODQ1ODg3NTMxMTcxODg5NjQ3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 61e2f80b34cb2807624058afb679f9485a82b022317c144f6a407f5f00d219fb hovercard-subject-tag issue:44795114 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/3614/issue_layout twitter:image https://opengraph.githubassets.com/53e61e83f56b58f1e27b46785077ab8c236d4a9fdf129d33b2f6964a63eaafe1/matplotlib/matplotlib/issues/3614 twitter:card summary_large_image og:image https://opengraph.githubassets.com/53e61e83f56b58f1e27b46785077ab8c236d4a9fdf129d33b2f6964a63eaafe1/matplotlib/matplotlib/issues/3614 og:image:alt Pickling imshow objects (I'm using them used for heatmaps) fails with the following error in IPython after %matplotlib inline magic has been used. If inline figures are not set they work as expecte... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username mfitzp 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
URLs of crawlers that visited me.