This repository has been archived by the owner on Jun 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Error in $: Failed reading: not a valid json value #2
Comments
Hi Tharre, The way pandoc-pyplot and pandoc communicate is via JSON. As you can see, somewhere this communication is breaking down. I can see two potential problems:
```{.pyplot}
import matplotlib.pyplot as plt
plt.figure()
plt.plot([0,1,2,3,4], [1,2,3,4,5])
plt.title('This is an example figure')
``` I will try the above example with pandoc 2.7.2 |
It is due to pandoc-pyplot's input arguments. Pandoc-pyplot was getting confused between inputs from pandoc and invalid flags. This behavior is not present in pandoc-pyplot v2.1.0.1. You should be able to use it without problems. I will release an update to fix it this morning (v2.1.1.1). Edit: a new version with the appropriate fix has been released. Give it a try and let me know if this is fixed. Forgive me for the inconvenience! |
Can confirm that it works. Thanks! |
LaurentRDC
added a commit
that referenced
this issue
May 14, 2019
LaurentRDC
added a commit
that referenced
this issue
Jan 9, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey there,
I've been trying to run the example from usage, but it's throwing an error:
Any idea what might cause this?
My system is x86_64 Arch Linux with pandoc version 2.7.2. I've installed pandoc-pyplot via stack.
Thanks in advance.
The text was updated successfully, but these errors were encountered: