Comments (4)
Version 1.5.5 has just been released. It should fix your issue. Please give it a try and let me know how it goes.
from pandoc-plot.
Hi Ben,
Thank you for your bug report.
This is because the content of each script is hashed, and the hash determines the filename. This means that two scripts with the same content will be exported to the same file, as you pointed out.
The reason for this was to prevent pandoc-plot
from re-generating plots on large documents. So if I change a single plot script in a 500 pages book, only 1 plot will be re-generated. If pandoc-plot added a randomly-generated string to every plot, then I would lose the 'caching' feature.
If you have N identical plot scripts (all with an identical hash value), then pandoc-plot
could generate only 1 figure. Then, in the final document, you would have N links to the same file. Would that solution work for you?
from pandoc-plot.
I've opted for the crude fix for now: add a lock to file writing operations. Most of the time is spent rendering figures anyways, so this lock won't have much effect on performance.
Once the tests pass, including a new one replicating the issue you reported, I'll make a new release.
from pandoc-plot.
I'll close this for now, as version 1.5.5 should fix this issue. If not, please don't hesitate to re-open the 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
- 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.