Skip to content

When plotting ":exports both" fails but ":results file" works #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
balbirthomas opened this issue Dec 27, 2020 · 0 comments
Open

When plotting ":exports both" fails but ":results file" works #10

balbirthomas opened this issue Dec 27, 2020 · 0 comments

Comments

@balbirthomas
Copy link

This issue was observed on Sage 9.0 (packaged for Ubuntu 20.04), using the latest git master branch of ob-sagemath. If a sage
plot command block is written as in

#+begin_src sage :file images/sin.png :exports both
  P = plot(sin(x), (0, 2*pi), figsize=[5, 4]); P
#+end_src

then after C-c C-c event though images/sin.png is generated it is not loaded into the org-file but instead the result shown are blank as in

#+RESULTS

Also the mini buffer shows a message stating no output was produced. However if the same plot block is written as

#+begin_src sage :results file
  P = plot(sin(x), (0, 2*pi), figsize=[5, 4]); P
#+end_src

Then the plot is indeed shown in the org file.

This problem does not occur using an older version of Sage 8.6.6 on Debian/Buster using the same git version of ob-sagemath

@balbirthomas balbirthomas changed the title When plotting ":exports both" fails but "results file" works When plotting ":exports both" fails but ":results file" works Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant