Comments (2)
I need to clarify the documentation on this. By default, when you pass Pandoc multiple files, it treats them all as one. Codebraid does the same thing, so the code from multiple files is treated as all being from one file, and thus all being in one session. Hence the error about first code cell config in the wrong place.
Pandoc has a --file-scope
option that treats multiple files as individuals, and then merges the results after parsing, This should cause Codebraid to do the same thing. The test files work with --file-scope
. Of course, that means that you can't have shared Markdown between files (things like footnote definitions, etc.). I have an existing way to enable the effects of --file-scope
for Codebraid even when it is disabled for Pandoc, but just haven't made it available to users yet...let me know if you need that.
In terms of better errors: There's #24 for adding exit codes, and I'm referencing that here to remind myself to look into more extensive error messages on the command line as well.
from codebraid.
Pandoc has a --file-scope option
Thanks, I wasn't aware of this option.
I have an existing way to enable the effects of --file-scope for Codebraid even when it is disabled for Pandoc, but just haven't made it available to users yet...let me know if you need that.
I'm not sure yet if it's necessary - at this stage it seems there's enough flexibility to put together a sensible workflow without this feature, but I'll keep it in mind as I continue experimenting with multiple files.
In terms of better errors: There's #24 for adding exit codes, and I'm referencing that here to remind myself to look into more extensive error messages on the command line as well.
👍
from codebraid.
Related Issues (20)
- Search path for Python executable on Windows
- --citeproc Pandoc option HOT 1
- Failure when specifying local MathJax HOT 2
- Use of inline html code characters appears to break source file parsing HOT 2
- can't run codebraid with new version of jupyter-client HOT 4
- What is the status of per-chunk caching? Is it supported/planned? HOT 8
- `codebraid` can't handle raw latex HOT 8
- Custom executable / custom language HOT 4
- How to use the Julia jupyter kernel to generate plots in output HOT 4
- Does codebraid work with Python Anaconda environments? Trouble plotting with python from jupyter notebook HOT 7
- Question about removing extraneous markdown characters from output HOT 2
- --only-code-output doesn't support example=true
- Overly aggressive caching HOT 3
- Markdown strings don't render normally HOT 2
- Feature request: Force execution of all code cells without adding `.cb-run` and `.cb-nb` HOT 3
- Feature request: override stdout code block language HOT 2
- host a website HOT 1
- Syntax for Goldmark HOT 2
- Inline expr w/kernel and images wo/kernel 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 codebraid.