|
From: | Mark Barton |
Subject: | Re: master e32c7d2: Change Python eval to send directly instead of using temporary files |
Date: | Sun, 5 Sep 2021 10:33:45 -0700 |
Here is a simpler one to attempt to reproduce. If I comment out the #+PROPERTY line to not use a session then it works. With the #+PROPERTY line, I get the “Inline error: multiline result cannot be used”. #+TITLE: Test Org Babel Export with Python Blocks #+AUTHOR: Mark Barton #+DATE: 2021-09-05 #+OPTIONS: toc:nil H:4 num:nil ^:nil #+EXCLUDE_TAGS: ignore #+LATEX_CLASS: article #+LaTeX_HEADER: \usepackage[letterpaper,margin=0.5in, bottom=1in]{geometry} #+latex_header: \usepackage{float} #+LaTeX_HEADER: \usepackage{enumitem}\setlist[itemize]{nosep} #+LaTeX_HEADER: \usepackage{needspace} #+LaTeX_HEADER: \usepackage{booktabs} #+LaTeX_HEADER: \usepackage{xcolor} #+LaTeX_HEADER: \let\OldRule\rule #+LaTeX_HEADER: \renewcommand{\rule}[2]{\OldRule{\linewidth}{#2}} #+LaTeX_HEADER: \setlength{\parindent}{0pt} #+LaTeX_HEADER: \setlength{\parskip}{12pt} #+PROPERTY: header-args:python :session python-chain :exports results :results raw replace *** Initialize python :ignore: #+NAME: file_date #+begin_src python :var file="Roster_Report.csv" :exports none import os import time print(time.strftime("%Y-%m-%d",time.localtime(os.path.getmtime(file))), end="") #+end_src *** Summary Test inline call_file_date[:results output :results raw](file="./ts_org_babel_python.csv") |
[Prev in Thread] | Current Thread | [Next in Thread] |