From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Strozzi, David J." Newsgroups: gmane.emacs.help Subject: matplotlib figures in python in emacs on windows Date: Sun, 29 Oct 2017 16:58:14 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509298268 24901 195.159.176.226 (29 Oct 2017 17:31:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Oct 2017 17:31:08 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 29 18:31:04 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e8rQF-0004nf-F0 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Oct 2017 18:30:55 +0100 Original-Received: from localhost ([::1]:37196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8rQJ-0006jR-CZ for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Oct 2017 13:30:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e8qum-0003lq-Kk for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 12:58:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e8quh-0008Vp-NC for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 12:58:24 -0400 Original-Received: from prdesa-2.llnl.gov ([128.15.143.182]:47886) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e8quh-0008UV-5d for help-gnu-emacs@gnu.org; Sun, 29 Oct 2017 12:58:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=llnl.gov; i=@llnl.gov; q=dns/txt; s=08082017; t=1509296299; x=1540832299; h=from:to:subject:date:message-id:mime-version; bh=g/4NBXkfw2OQOTCQINA4h9Qj4BFFpAVlNbb231RTizs=; b=hyZid3j7LFaDYFKAKIlO4saYtmjEzbDYcDcaoAy+6fleS+2xHphsbn6E 8/YRBXZs+OHp4+TqIMR7uCdGSfZgAWOPoRSRHbt6r20TrySEk+plYLivF S4G/yNvMGaYV/vUUaGy/e37f89DBtcEb3GDRRmTT844G4IpYImAQVCfta A=; X-Attachments: Original-Received: from prdexhub-01-snat.llnl.gov (HELO PRDEXHUB-01.the-lab.llnl.gov) ([128.15.143.213]) by prdesa-2.llnl.gov with ESMTP; 29 Oct 2017 09:58:16 -0700 Original-Received: from gcc01-dm2-obe.outbound.protection.outlook.com (23.103.198.54) by webmail.llnl.gov (128.15.143.150) with Microsoft SMTP Server (TLS) id 14.3.279.2; Sun, 29 Oct 2017 09:58:16 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=doellnl.onmicrosoft.com; s=selector1-llnl-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=x7o6wOAKCbJaQpMu9Hbd+inhfzYMu1oGr3JexzwR5Ho=; b=sUanj9HKtLRhuXfUCtK1k78uMD9nEQzLFyrKdRo/RZNi2zzRy7oicGRhM2yYGv/HM3wvzY8KbsuBsVLQJpYS4RawPJO0p3vknoao7HO0GBK2mbdCnQEkgstC+CfnIXfvXvMrDXGysQagtvD3muN5hp5moWQgV9wvThrAxagNN1U= Original-Received: from BY2PR09MB1077.namprd09.prod.outlook.com (10.166.116.9) by BY2PR09MB1079.namprd09.prod.outlook.com (10.166.116.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Sun, 29 Oct 2017 16:58:14 +0000 Original-Received: from BY2PR09MB1077.namprd09.prod.outlook.com ([10.166.116.9]) by BY2PR09MB1077.namprd09.prod.outlook.com ([10.166.116.9]) with mapi id 15.20.0178.012; Sun, 29 Oct 2017 16:58:14 +0000 Thread-Topic: matplotlib figures in python in emacs on windows Thread-Index: AdNQ1dMvbQGZ1gamTAK2ih6QsyNgzQ== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=strozzi2@llnl.gov; x-originating-ip: [128.15.244.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BY2PR09MB1079; 6:PCezPCLQtIzval+nrcMbA47NFpnPEc8u9LOvTdCtdi5PHm9OLAExWVVkjoS4BbmJPOdjpMkpHqZU5QGA4b6zNITqwhhuryYwt8fqTWXnTE8KiCZzyYmOw+ujyrgRtPcwFUxhfwk4UI5BCUln9LgBbKgkMCcWA65ukdmCHICizEuchw9ElH+fU42lVnPJpreVcP5zuJXDA2NH/XsN5QonAvFQGF4cSJXwXV2FFC85HPynucblzMWPBWTIGubT4CDw8DOQ+pOQwVLgVbZ1FldprYoe1A/otsO1ItWO/j7/a8QAVzJAX4Ey/E2WfNM9Gm7dAqM5sMA9X1leg247Sd4i3FtS0f1Vnpz1wr1smQRv46o=; 5:ff97i9wVtmVKoXMCA2Hw8Qba+2GvarOPLKeVCvr6UrOAiPrku1a12y4K8dL9Wb2A0vj4ozwTLHwmJSiln+MxZQ3K2abVxS3mFjW3cKHi5EqXm2iRKWAEXLb+6h3wVTsrWJpqTIv8JlmsUJexjR6bNcA2m1Ytxd2d8H3CnkvvRmo=; 24:Zo6/cMNGlPW2go4p6HuowhhzMMmiXZH81mGwDrHzyMk1g1wAkj3sVauSCKONC+XLKOkDy1bV57hiGs+cRs8ezzkENEak3b06ZcGSn1KdrF8=; 7:rfUgJ0NxpM7kltVc+XrM8nV9rpspJY11QVzuu018AkrejZ6Vb3oPdVjmW+CWuu0STJHHehFEv0EqBoqDoL9AMXh/bU9VFf/soYrfXhCpEXDjLgnK/3PBw3NYXDluGmvMqGQDzKHnJQ+F8z1hmGMUhhIOzg8BRNHRcX52W+Fzl8cAUWC99JchRZml2 x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: fd45401e-24f9-4b7c-ded2-08d51eee3eac x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603199); SRVR:BY2PR09MB1079; x-ms-traffictypediagnostic: BY2PR09MB1079: x-exchange-antispam-report-test: UriScan:(21748063052155); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231020)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR09MB1079; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR09MB1079; x-forefront-prvs: 0475418F50 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(346002)(39830400002)(376002)(199003)(189002)(53936002)(2906002)(86362001)(7736002)(5630700001)(33656002)(8936002)(101416001)(55016002)(50986999)(74316002)(102836003)(54356999)(25786009)(8676002)(478600001)(3280700002)(81166006)(81156014)(3846002)(68736007)(3660700001)(99286003)(6116002)(6506006)(77096006)(6436002)(790700001)(5640700003)(9326002)(6916009)(7696004)(19609705001)(66066001)(2501003)(2900100001)(189998001)(2351001)(97736004)(5660300001)(9686003)(105586002)(54896002)(6306002)(316002)(14454004)(106356001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR09MB1079; H:BY2PR09MB1077.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: llnl.gov does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-MS-Exchange-CrossTenant-Network-Message-Id: fd45401e-24f9-4b7c-ded2-08d51eee3eac X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2017 16:58:14.3640 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a722dec9-ae4e-4ae3-9d75-fd66e2680a63 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR09MB1079 X-OriginatorOrg: llnl.gov X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 128.15.143.182 X-Mailman-Approved-At: Sun, 29 Oct 2017 13:30:05 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114693 Archived-At: Hi, I am running Windows 7, with python tools from Anaconda (python 3.6.2, matp= lotlib 2.0.2), and the windows native emacs build. Matplotlib figure windo= ws aren't working. This won't make sense if you don't use matplotlib: * From a plain DOS prompt: python from pylab import * figure(1); plot(1,1); show() # works - figure window appears, I can use the buttons, no python prompt un= til I close figure window ion() figure(1); plot(1,1); show() # works - figure window appears and I get python prompt back * emacs -Q (customizations off) M-x run-python same things as above don't work: from pylab import * figure(1) plot(1,1) # no figure window, no python prompt kill process M-x run-python from pylab import * ion() figure(1) # window appears, buttons work, python prompt works plot(1,1) # doesn't work - figure window doesn't update, no python prompt I got on this because I am trying to run ipython within emacs using the elp= y package. Similar problems occur. So after talking to various people we = tried this simpler case - no ipython, no elpy. Frankly I'm impressed matpl= otlib works interactively at all outside of ipython. Tom Caswell (matplotlib) thinks the issue is how PyOS_InputHook is being ha= ndled. But this beyond me and I'd rather not become an expert in this. Thoughts? Dave