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 21:34:55 +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="15756"; 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 15:36:48 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 1mSfx2-0003sG-O5 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 15:36:48 +0200 Original-Received: from localhost ([::1]:55292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSfx0-0000xl-S9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Sep 2021 09:36:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSfvV-0000ty-Fg for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 09:35:13 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:38704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSfvT-0006rU-Pz for help-gnu-emacs@gnu.org; Tue, 21 Sep 2021 09:35:13 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id x27so81399917lfu.5 for ; Tue, 21 Sep 2021 06:35:11 -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=ALWrxOq3R227x/DR6J0U+uAmNAv9y9dMRKGpf2x+BRU=; b=GcuQRx7B/6LMl3fX9mmkS+vDKx1MBMXxrqYMZH1nucn2mgjuLxySn9eT4gSaIKDbFu oYMYCbat/XVxfJ0oOSMcyL5P6etk/d5LdCZUau9oBqnr4RZno1krg/ikllLWhFiQhTQO qXV9MeGVy7hlVcRq2DQF63YDCOfTAbPbfC9jcAdlVCFTwc4T6cxvmF0bMulPFSiElu4x 6UkOdQaPGSHy5LLfpsSBr5FJUeohVJwtnS8uBRF0oNzemvbfrm4UZ/6dBf17WleyvFmv R5GJAGeCBeWQBSNE0DF6YjHjddbWNYEgfYQoQziPYUvg+Gh9UHK5EBlDsCNJInxa3EfG JxeQ== 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=ALWrxOq3R227x/DR6J0U+uAmNAv9y9dMRKGpf2x+BRU=; b=hxR2xtl8TtAAGSuLmsTl+s/3kFF2EYnOMK3Wl+5Sxmb77DpY4xbIW9WppS399Kxadv oTYTgMcz6xAczLfvxhdDs8wSild2YeZNa7Znjb85yS6vbY6gqbc+l5HkYRr1X7/P148g uXNkJ1R6gEVbnifMXqJ5SAzoe+GsSd9+t54bkzlLvBm68LKg9zqEBEWsRYXrNttEaAjW bmGWFvPetlod6kNm1EQlePpfQVICSIzZ0+1jWdYQm5CL+qfKi6TEN7beCYh/QPcQo7db W+DKqaClJ7CaJytKBgDYBjkNSVo7KXAYwO375tq2F88r8/bVZdJ3TbJ2yeKAksxz+QXE owwQ== X-Gm-Message-State: AOAM532cum89WyLdTVdXJbs2QVt7MhDGXNI62ZuGjuZEBC5vvYSCiHlB 5UDpU1G/d4qUfXlDHMyRITk8G9g51KqyQZgJGFE= X-Google-Smtp-Source: ABdhPJyVgWPyNavomqWD1yPqQfn/io5E35mx4Z1TB+Vmj3dvBDzAzyvIp6/9CUP7zRmjAhlO2HdKQKyAbv+B6zC0/dc= X-Received: by 2002:ac2:59c6:: with SMTP id x6mr23836987lfn.298.1632231307225; Tue, 21 Sep 2021 06:35:07 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12c.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:133135 Archived-At: On Tue, Sep 21, 2021 at 8:51 PM Hongyi Zhao wrote: > > 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. Maybe I misunderstood the function of this package. See here [1] for the relevant issue filed by me. [1] https://github.com/thisch/python-cell.el/issues/11 Regards, HZ