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 AKVLI2HGyWDyJAAAgWs5BA (envelope-from ) for ; Wed, 16 Jun 2021 11:37:37 +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 ACUlH2HGyWDfHAAA1q6Kng (envelope-from ) for ; Wed, 16 Jun 2021 09:37:37 +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 E1E4C1961D for ; Wed, 16 Jun 2021 11:37:36 +0200 (CEST) Received: from localhost ([::1]:36076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltRzL-0005kV-VS for larch@yhetil.org; Wed, 16 Jun 2021 05:37:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltRvY-000387-Ry for emacs-orgmode@gnu.org; Wed, 16 Jun 2021 05:33:40 -0400 Received: from lvs-smtpgate2.nz.fh-koeln.de ([139.6.1.48]:17147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltRvU-0007vI-Vl for emacs-orgmode@gnu.org; Wed, 16 Jun 2021 05:33:39 -0400 IronPort-SDR: FnImUWPbkZ5ppHuwLVv7PCJQ5jkx8mou9YQ026EjBVhTO0Zbh45IHy9p9jBJ1w5AGALp95W8CM OM539yfKphtIEiw08vbOwX/fE6Q8LH+QBBT6gQIuBxPJ0g/G+As3IkXexwzF8LLf4GYX/Nj3lX eWkY0o8pOdbgI3mDRk4BVX4mjngcTOrzbWaX5mxRz4e+SFgjDMuPlZt9BPGNB2OlfiaJ3HQIYS 1AAwmeVL+GYbB+TYx0j4YFz9owvM2EhZK1da2ErJOjaxk3oNJJwtgx6+yspgGvFirhGaaJ2EHP FkYUFU0mwZGsE5fq88qdYt+R Received: from p4fd498bf.dip0.t-ipconnect.de (HELO localhost) ([79.212.152.191]) by smtp.intranet.fh-koeln.de with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Jun 2021 11:33:31 +0200 User-agent: mu4e 1.0; emacs 25.3.1 From: "Prof. Dr. Johanna May" To: emacs-orgmode@gnu.org Subject: no inline images anymore after reinstall Date: Wed, 16 Jun 2021 11:33:23 +0200 Message-ID: <87mtrqp318.fsf@th-koeln.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=139.6.1.48; envelope-from=johanna.may@th-koeln.de; helo=lvs-smtpgate2.nz.fh-koeln.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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: , 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=1623836257; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=y+RQ3D+6KAgcIOOmt2/0n/guDmhuSuEIVecM8h1CbiM=; b=ZB8V6M6vzlqxoiU2mp3QpbB4l9g4nYUQ+59blEbb3INTv1Sn1GuJCZXJi6qp0nXs2VC6AJ XcMLp7hn2oLAYQuXZBiKSt7zQHTllyB/9dvKVA8X90/T+Ss0cTWRAsDKeu1Auv1v7mvDia WsYqNESKeINc/QH1A0MFENB43RHf2ofT9fhEBMTKZiKCdmMUmPsY2WhOtUHNdxSVUH14n4 8OdFyda8X3Fgy9xdpvYH+flbQI45JPwBZdgYns9RMIHUC8OgnPzjSs3uxNYH0Hj8W1U7m8 7PbrP39OreKfVC/xYezZLCBY57avJ7wEPX4AZ0jafnfs79jrDSH00UZARYmfsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623836257; a=rsa-sha256; cv=none; b=GW1zWkpeoDQh+hmdfgecWSPXwTi1x5BbUOlxm1nfB8rKX+AwDQPtXS8p/3O/5BX3ti/oWO 9d1WffrGNXmaoG27mmxPwSiFwYJejz6yYvsN11EF5gX56NhWjU36rrfYMVBGaevVz+axGu zTwA6y6T/MaJ7W8dwneGwIVzsneENtmtBY382w0palMKxHyI4EAmn5kNkpjyUrJ5SCoXey FeesouQ9QGadz/wdTmSjAOy0ih6gzgPRFs0tzDhUeZKpM/L063sRJfGZ1HrUzo6FdTxEKO BEcUpSnL01gX5A06/xoCgh24LCDzdWha74uzhU0h+Re+dd/Qr6o//Rc1D9zvZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: E1E4C1961D X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: kdnABR3/TJ/K 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 --- ;; === org-babel - Code einbinden === ;; ### 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ückungen 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 'append) (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=(org-babel-temp-file "figure" ".png"),fontsize=fs :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=plt.figure(figsize=(6,3)) x=np.linspace(0,5*np.pi,1000) udach=230*np.sqrt(2) phi1=0 phi2=-np.pi*2/3 phi3=-np.pi*4/3 u1=udach*np.cos(x+phi1) u2=udach*np.cos(x+phi2) u3=udach*np.cos(x+phi3) plt.plot(x,u1,label='$u_1(t)$') plt.plot(x,u2,label='$u_2(t)$') plt.plot(x,u3,label='$u_3(t)$') plt.xlabel('$t$') plt.ylabel('$u$') plt.xticks([]) plt.yticks([]) plt.legend(fontsize='small',bbox_to_anchor=(0,1.02,1.02,0),loc=3,ncol=3,mode="expand",borderaxespad=0.) plt.grid(True) plt.axhline(0,color='black',lw=1) #plt.tight_layout() plt.savefig(matplot_lib_filename,bbox_inches='tight') matplot_lib_filename #+end_src #+CAPTION: Zeitverlauf symmetrischer Spannungen #+LABEL: fig-zeitverlaufspgendrehstrom #+ATTR_LATEX: :width \textwidth :height \textheight :options angle=0,keepaspectratio :float nil #+RESULTS: fig-zeitverlaufspgendrehstrom [[file:]] ---snip ---