GithubHelp home page GithubHelp logo

Comments (4)

gpoore avatar gpoore commented on June 4, 2024

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.

00krishna avatar 00krishna commented on June 4, 2024

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.

gpoore avatar gpoore commented on June 4, 2024

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.

gpoore avatar gpoore commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.