From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Show the figure created by matplotlib in Emacs' frame. Date: Tue, 21 Sep 2021 20:51:09 +0800 Message-ID: References: <87a6katd2l.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27632"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: James Thomas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 21 14:52:31 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSfGB-0006x5-D2 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 14:52:31 +0200 Original-Received: from localhost ([::1]:36804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSfGA-0006Zj-Dd for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 08:52:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSfFC-0006Ao-Rz for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 08:51:30 -0400 Original-Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:39908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSfF5-0004vA-Hu for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 08:51:30 -0400 Original-Received: by mail-lf1-x12d.google.com with SMTP id i25so81653820lfg.6 for ; Tue, 21 Sep 2021 05:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m/DLxU1WtZzGzEY3QTKefuiSgb7eZrRtc56HsYAE54Q=; b=oGOYE3RCXststLKBH3s7RU4ZTr+uFQSaFuiePJR9uMjgtaq1M45c/38Xbr5rgqMoa0 lZDXLSiLaWHGDi7VFfcMJVJqAuIe9MzufOMXpJwHF8/AjZBDh4sLyzH3F5ooBdd8i2ll 4AMvgDyx5rQgccUvuTRR1Y97PbkQzlonWcuTcyiJeMANqaIJiHN1YQvFSVvCBbi0fAb+ L1603VL8Xd1ANvK0Aa91L/oLa+Im/mSDFkSASeOBqVoUPUOpW653UsQ2+XMK91MT9tf0 3S8lrumRTOwqs9Ji1f71wvNE55zBOAqZEIXUIPjIAj5pGn8uRMgnEYahScfn8sOGjgrY hRaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m/DLxU1WtZzGzEY3QTKefuiSgb7eZrRtc56HsYAE54Q=; b=AbC2pX+fm9pcf9x4QhCWLPLDkwZjA3+RDecPaXqQo8+F9g6RqyskoNp0rpKoXGFwaf DnE8As/sDnUMUGytO77ynycin1kJYSetMfUHp2OR6/Z+NsRjlA1jrxrrkhyQgqrr0m0g uuU2DEu+gQ8WO6GuiXMAzo9A9UErXo618ybU6cqVX47HRuEvPtmz6dmzYqGduKGbutVc lY9JZICa3OZ94vUhZnz3KYEEMVrnyXLJZ7bxJZWS+jNcUjiznYp/p9CO1FnuDW+mGC7Y 2jQguNQ6GqbIAGH2cEqhOMlI+ntPa5I3tInhDSksgxdHQoUrt9iGke9sYoi7/gR5HX+M JeAA== X-Gm-Message-State: AOAM530/THL1YYOEpqnruu5PkUxMjmO6SNE3lPfN9tDbdlGfSJ+HhA1y ZuNjWi6LJrozs2Mhbu1N/ZosbAup8mIK5u1Qzqc= X-Google-Smtp-Source: ABdhPJwhHUneim+mZL4dqKFHW5pffUftyyJl9rhG0c1JZdPbU5Wr54IFhPvO3ewgxd/iTZ9QjrwtwCxLpiKsk8mrm5k= X-Received: by 2002:a05:6512:13a5:: with SMTP id p37mr7777299lfa.403.1632228681240; Tue, 21 Sep 2021 05:51:21 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133134 Archived-At: On Sun, Sep 19, 2021 at 10:49 PM Hongyi Zhao wrote: > > On Sat, Sep 18, 2021 at 6:02 PM James Thomas wrote: > > > > Hongyi Zhao wrote: > > > > > But I want to know whether I can let Emacs render the figure in its own frame. > > > > (To add to what is already suggested) I've heard of a new package for > > this. > > > > https://github.com/astoff/comint-mime > > With the help from the developer of the package above, I've finally > solved the problem discussed here, see [1] fore detailed information. > > [1] https://github.com/astoff/comint-mime/issues/2#issuecomment-922462074 Supplementary note: Another tool that can do similar work is python-cell.el [1]. [1] https://github.com/thisch/python-cell.el. Best, HZ