Comments (4)
There are a couple of issues. IJulia
defaults to SVG output, which Codebraid currently ignores for display purposes. I can probably add support for that to the next release, which will be within the next few days. For now, you can use default(fmt = :png)
or something similar to switch to a supported output format.
The other issue is that Starting kernel event loops.
can appear at the start of the document whenever code runs, if you are writing your document to stdout or using Codebraid Preview. If you just rebuild the document (so the cache is used), this goes away. It looks like IJulia
writes messages to stdout during startup. I don't know if there's a way to disable that. Otherwise I suppose Codebraid might be able to modify stdout during startup to capture the message.
from codebraid.
Excellent. Okay, I set the default to :png
and that seems to have worked. So that is really nice. Thanks for the tip on that.
I sometimes see that kernel event loops
message when running codebraid.
I just checked my test document and it did not seem to be a problem, but I will stay on the lookout for it. So the solution, as you say, is just to build the file twice--so that the cache is used. I will keep that in mind. I am hoping to use codebraid
to take the pandoc markdown and process it for running in a Hugo blog. So I suppose I just have to instruct my build routine to always run all codebraid
build twice--to make sure those extra comments are not in the final output.
from codebraid.
The dev version on GitHub now fixes a bug in creating SVG files and adds SVG to the formats that are automatically displayed. So SVG will work automatically by default now. It's working very nicely in Codebraid Preview. A new release with these features will be on PyPI in the next day or so.
For the case of creating PDF files, you may still want PNG, depending on how you are telling Pandoc to create the PDF and whether that method supports SVG images.
from codebraid.
The kernel event loops
message issue should now be solved as well, so no extra steps or building twice should be needed in the future for Jupyter kernels that write messages to stdout or stderr.
from codebraid.
Related Issues (20)
- Pandoc Version Read Incorrectly HOT 1
- Errors with pandoc 2.11 HOT 3
- 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
- Working with multiple source files w/ .cb.nb 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
- 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
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.