all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Strozzi, David J." <strozzi2@llnl.gov>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: matplotlib figures in python in emacs on windows
Date: Sun, 29 Oct 2017 16:58:14 +0000	[thread overview]
Message-ID: <BY2PR09MB1077F456CCB4306CAD5402DEE9580@BY2PR09MB1077.namprd09.prod.outlook.com> (raw)

Hi,

I am running Windows 7, with python tools from Anaconda (python 3.6.2, matplotlib 2.0.2), and the windows native emacs build.  Matplotlib figure windows 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 until 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 elpy package.  Similar problems occur.  So after talking to various people we tried this simpler case - no ipython, no elpy.  Frankly I'm impressed matplotlib works interactively at all outside of ipython.

Tom Caswell (matplotlib) thinks the issue is how PyOS_InputHook is being handled.  But this beyond me and I'd rather not become an expert in this.

Thoughts?

Dave



                 reply	other threads:[~2017-10-29 16:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BY2PR09MB1077F456CCB4306CAD5402DEE9580@BY2PR09MB1077.namprd09.prod.outlook.com \
    --to=strozzi2@llnl.gov \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.