Comments (6)
Hello,
I'm no expert on Julia. Would you be able to answer the following questions:
- What error are you getting? Can you copy-paste the error?
- What version of pandoc / pandoc-plot are you using?
- Can you write down a simple exampel that reproduces the error, so I can test it here?
Thanks!
from pandoc-plot.
pandoc.exe 2.11.3.1 and pandoc-plot 1.0.0.0 (Win10 OS)
Minimum working example looks like,
using CSV, Plots # CSV package must be loaded here to read a csv file
mtx=CSV.read("foo.csv", header = false); mtx=Matrix(mtx)
plot(mtx[1:end,1], mtx[1:end,2])
assuming the content of foo.csv
file below;
1,3
2,5
3,4
This complains some error that will be posted later.
from pandoc-plot.
The error looks like: (unless loading CSV package, this did not occur)
ERROR | Running command
ERROR | julia.exe "C:\Users\JohnDoe\AppData\Local\Temp\pandocplot1257825860.jl"
ERROR | ended with exit code ExitFailure 1
ERROR | *******
ERROR | ERROR: error initializing stdin in uv_dup: Unknown system error 50 (Unknown system error 50 50)
ERROR |
ERROR | *******
ERROR | Running command
ERROR | julia.exe -e "using Plots"
ERROR | ended with exit code ExitFailure 1
ERROR | *******
ERROR | ERROR: error initializing stdin in uv_dup: Unknown system error 50 (Unknown system error 50 50)
ERROR |
ERROR | *******
ERROR | Julia/Plots.jl toolkit not installed.
from pandoc-plot.
First, notice that the second issue says: Julia/Plots.jl toolkit not installed.
. This probably means that the Plots
package is not installed.
I think the first issue is that this is not valid Julia, and the error is not being reported by pandoc-plot correctly. If I try the code above with CSV 0.8.2:
julia> mtx=CSV.read("test.csv", header=false); mtx=Matrix(mtx)
ERROR: ArgumentError: provide a valid sink argument, like `using DataFrames; CSV.read(source, DataFrame)`
The following Markdown file works with pandoc-plot:
# Test
```{.plotsjl}
using CSV, Plots, DataFrames
mtx=CSV.File("foo.csv", header = false) |> DataFrame
plot(mtx[1:end,1], mtx[1:end,2])
```
Can you confirm to me that the Julia code works in the Julia REPL? Maybe you are using an old version of CSV?
from pandoc-plot.
Thanks! I realized that the reason of failure comes from multi-statements using semicolon;
mtx=CSV.read("test.csv", header=false); mtx=Matrix(mtx)
By separating this into two lines,
mtx=CSV.read("test.csv", header=false)
mtx=Matrix(mtx)
this now works.
The problem does not come from loading multiple packages in addition to Plots.jl
which was my misunderstanding.
from pandoc-plot.
Great, so I will close this issue.
from pandoc-plot.
Related Issues (20)
- Better error processing & message when output format string is in lower caps. HOT 3
- Feature Request: `override: true/false` parameter for default output format in configuration YAML HOT 3
- Feature Request: Sage support HOT 4
- Full path to executable being ignored HOT 8
- Matplotlib 'tight_bbox' ignored HOT 2
- [conda package] Please push to Pandoc 2.18 HOT 2
- Support running executables in Docker containers (namely PlantUML) HOT 3
- Add PlantUML Security Profile by Default HOT 5
- `--safe` option that only allows safe plotting options HOT 1
- Concurrency issue when generating identical graphs HOT 4
- Support Penrose diagrams HOT 2
- Support asymptote diagrams HOT 3
- Support pikchr diagrams HOT 4
- Support d2 diagrams HOT 1
- Support pandoc 3.0 HOT 3
- Support SankeyMatic diagrams HOT 1
- Debugging output when subprocess errors... HOT 1
- Half-width or text-wrapped figures? HOT 4
- `--help-figure-keys` HOT 2
- Missing file for `--manual` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc-plot.