From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6JfNNEv0yWC+pQAAgWs5BA (envelope-from ) for ; Wed, 16 Jun 2021 14:53:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kBJQMEv0yWCoIwAA1q6Kng (envelope-from ) for ; Wed, 16 Jun 2021 12:53:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1CF191D2D1 for ; Wed, 16 Jun 2021 14:53:31 +0200 (CEST) Received: from localhost ([::1]:58696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltV2w-0001hS-0V for larch@yhetil.org; Wed, 16 Jun 2021 08:53:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltV1K-0001H8-Gv for emacs-orgmode@gnu.org; Wed, 16 Jun 2021 08:51:50 -0400 Received: from mout01.posteo.de ([185.67.36.65]:47707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltV1H-0003t7-Ej for emacs-orgmode@gnu.org; Wed, 16 Jun 2021 08:51:50 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id CF844240028 for ; Wed, 16 Jun 2021 14:51:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623847903; bh=u24oK5t879aO5AwH43/ZT1E6DZ0efg9DSkaSytnSkeU=; h=From:To:Cc:Subject:Date:From; b=lImJiDxioHazTX+sk+iTcb5zyNj7dUhi/U/vBYYpFVws4SwJrOE8O8Vj2Z6XN657c MyDgLsckNaWhIRSXctnJRcqdsoDO/32yR4dnVxDmAQJtItomrL+arUJFsU64TYRoKo hpfTKm4ojRMbmMqad+wxL6LORsm3SpOqv9eNZGXvo8zbavE2kJRsuqP8dmJW1LiDbo zUrrm6aWG/vwYZj+buZRoFEKYu6BL58Eoqg7VgBqXJfIGkDyR4WlRy9GPGFA9LPJnE anFYbwj3ATIM2pXD+ks0A+5oHH3dP6YsItOASnkWzeTuHCrXLchGxh/ezuD0/a2kHr DMnSn9yvpvdtg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G4lSH1L11z9rxN; Wed, 16 Jun 2021 14:51:42 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: "Prof. Dr. Johanna May" Subject: Re: no inline images anymore after reinstall References: <87mtrqp318.fsf@th-koeln.de> Date: Wed, 16 Jun 2021 12:51:41 +0000 In-Reply-To: <87mtrqp318.fsf@th-koeln.de> (Johanna May's message of "Wed, 16 Jun 2021 11:33:23 +0200") Message-ID: <8735tiht0i.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623848011; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=idyeZMc17jlZ1f8WRbVVMtt4VEW250mZkPJst+ShaRY=; b=nrYykqdQ6s9VyngaEPDxQXqtH28BnwKS8t9oTnrBypwz2kFm+mtGUlBe1tR4eUIihp1zL9 LqG3dSDWb06qQxAJNl6rPX+U3KnRZfBiLFID/73TVBLK+KYUdHn4y/d8M8jSJ4Yv/r0ztK U1m/EiS1BQzOIvT62MyPark2w+S3P/MBqGQQiSZZGAW0o5B5GzRxbFS0GJOK0YeREvE2EW kSIrl6WShV9lYqykyqB6jhsxf6o6+NJMf3oo79mLvyVSyPxqqn5w+n3kyNPwHu6Rr0C3Xa sCt9cMf8o0EeLkEr3Hx7Fg6GFIfI7wRkQ2mc4OmoCqgwNK8P7ELvMTG4rMYlPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623848011; a=rsa-sha256; cv=none; b=PwQ2m+dLtOv5Xq0MmmuOuP2L01u5XVQVy9mgafGC41+mehHpwnZ2plqI+ez+jTgyTCe/hz Mr2FZmf24MxM3vvDBI1MiYj/Vu/D/eROy2Vf0ba71y7jw6aLBXsZlaboOsOv51nM8g7Gx6 Th+DkEp1YaC8FwpVPSXaqRFp42VvKrn3hx3DPdwow6hvjDQKoTspFGWz5Ixm6aX7vUZ7e6 CI+L14cukyYkLptwQrsrp9X6/yX49Pr+nz7FUV/BxpUe623+Nqw89+IAPQe55ikfRZQODz 6ZggrFillA18+i2QGiCWfH4CMTpecu+HrPyxFS1u0XyGpg4yEB/t84oN048o9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lImJiDxi; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lImJiDxi; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 1CF191D2D1 X-Spam-Score: -1.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: GAL5do7CV7IA Hi Johanna, I don't have much knowledge of Python, but I have done this, in case it helps you locate the problem: - I have tried to evaluate your block (previously I have installed in my Arch system python-matplotlib). Output: =20=20 #+RESULTS: fig-zeitverlaufspgendrehstrom [[file:]] but - I have noticed that if you comment on these two lines: # plt.rcParams.update({'font.size':fontsize}) # rcParams.update({'figure.autolayout': True}) output: #+RESULTS: fig-zeitverlaufspgendrehstrom [[file:/tmp/babel-yXFqLG/figurepLRhLV.png]] (Python console was returning these two errors before commenting the lines: NameError: name 'fontsize' is not defined NameError: name 'rcParams' is not defined) Best regards, Juan Manuel=20 Prof. Dr. Johanna May writes: > Hi guys, > > I've been trying on the web and in "known as good" config files to solve > this but cannot seem to find the solution: > > After reinstalling linux (openSuse leap 15.3) and finding out that > unfortunately the distro is too new, so 27.1 does not yet get offered > and switching back to 25.3 most of the stuff that I need works again. > > Except for including python output diagrams in org-babel. I put the > diagram code at the very bottom since it takes up some space. At the very= end > you also see the output: it is not a file, it is just a link called > [[file:]]. That cannot be right and then, of course, there are no inline > images displayed and not exported either. It is remarkable though, that > latex gets the link to the file, but just does not seem to show it > right. This might point to a latex problem, but the inline images aren't > shown in org-babel. Therefore I'm trying to find a solution here. > > In my dotemacs I included what I thought relevant to get it working, but > it doesn't (below). > > I would be very glad about a hint where to look for a solution. Maybe > some package-install (but which). Or some other configuration ... Or > maybe I'm still lacking an important distro package that just does not > get output on any error buffer? > > Thank you very much, any help is appreciated > > Johanna May > > --- some of my dotemacs lines --- > ;; =3D=3D=3D org-babel - Code einbinden =3D=3D=3D > ;; ### Darstellung ### > (setq org-startup-with-inline-images t) > (setq org-confirm-babel-evaluate nil) > (setq org-src-fontify-natively t) > (setq org-src-tab-acts-natively t) > (setq org-hide-emphasis-markers t) > > ;; ### Statistik mit R ESS ### > (require 'ess-site) > > ;; ### org-babel Sprachen ### > (require 'ob-python) > (setq org-babel-python-command "python3") > ;;(setq python-shell-interpreter "python3") > (org-babel-do-load-languages > 'org-babel-load-languages > '((emacs-lisp . t) > (python . t) > (ipython . t) > (shell . t) > (js . t) > (latex . t) > (org . t) > (octave . t) > (R . t) > (plantuml . t) > (dot . t) > (gnuplot . t) > (ruby . t) > (screen . nil) > (ledger . t) > (C . t) > (sql . t) > (ditaa . t))) > > ;; ### Einr=C3=BCckungen beachten (z. B. python) ### > (setq org-edit-src-content-indentation 0) > (setq org-src-tab-acts-natively t) > (setq org-src-preserve-indentation t) > > ;; ### python-Coding ### > (require 'epc) > (require 'company) > (add-hook 'after-init-hook 'global-company-mode) > (global-font-lock-mode t) > (setq font-lock-maximum-decoration t) > (setq-default indent-tabs-mode nil) ;; nicht Tabs sondern 4 Leerzeichen > (setq default-tab-width 4) > (add-hook 'python-mode-hook 'anaconda-mode) > (add-hook 'python-mode-hook 'eldoc-mode) > (eval-after-load "company" > '(progn > (add-to-list 'company-backends 'company-anaconda))) > (add-hook 'python-mode-hook 'anaconda-mode) > > ;; ### Bilder aus python inline anzeigen ### > (add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'appen= d) > (add-hook 'org-mode-hook 'org-display-inline-images) > --- snip --- > > > ---diagram code in org--- > > #+name: fig-zeitverlaufspgendrehstrom > #+begin_src python :results file :session :var matplot_lib_filename=3D(or= g-babel-temp-file "figure" ".png"),fontsize=3Dfs :exports results > > import matplotlib.pyplot as plt > plt.style.use('classic') > import numpy as np > from matplotlib.ticker import FuncFormatter, MultipleLocator > plt.style.use('classic') > > plt.rcParams.update({'font.size':fontsize}) > rcParams.update({'figure.autolayout': True}) > > fig=3Dplt.figure(figsize=3D(6,3)) > > x=3Dnp.linspace(0,5*np.pi,1000) > udach=3D230*np.sqrt(2) > phi1=3D0 > phi2=3D-np.pi*2/3 > phi3=3D-np.pi*4/3 > u1=3Dudach*np.cos(x+phi1) > u2=3Dudach*np.cos(x+phi2) > u3=3Dudach*np.cos(x+phi3) > > plt.plot(x,u1,label=3D'$u_1(t)$') > plt.plot(x,u2,label=3D'$u_2(t)$') > plt.plot(x,u3,label=3D'$u_3(t)$') > plt.xlabel('$t$') > plt.ylabel('$u$') > plt.xticks([]) > plt.yticks([]) > plt.legend(fontsize=3D'small',bbox_to_anchor=3D(0,1.02,1.02,0),loc=3D3,nc= ol=3D3,mode=3D"expand",borderaxespad=3D0.) > plt.grid(True) > plt.axhline(0,color=3D'black',lw=3D1) > > #plt.tight_layout() > plt.savefig(matplot_lib_filename,bbox_inches=3D'tight') > matplot_lib_filename > #+end_src > > #+CAPTION: Zeitverlauf symmetrischer Spannungen > #+LABEL: fig-zeitverlaufspgendrehstrom > > #+ATTR_LATEX: :width \textwidth :height \textheight :options angle=3D0,ke= epaspectratio :float nil > > #+RESULTS: fig-zeitverlaufspgendrehstrom > [[file:]] > > ---snip --- >