Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printing linear regression - adjust for markdown #34

Open
daslu opened this issue Oct 24, 2024 · 2 comments
Open

printing linear regression - adjust for markdown #34

daslu opened this issue Oct 24, 2024 · 2 comments

Comments

@daslu
Copy link

daslu commented Oct 24, 2024

Some adjustments will be necessary to make the printed LMData and GLMData print nicely in Markdown.

One detail is that tables are printed using clojure.pprint/print-table. It uses plus signs instead of pipes. These plus signs are handled correctly in Quarto Markdown, but not in nextjournal/markdown which is used for plain HTML in Clay (and is also used in Clerk). Replacing them

2024-10-24-112649_3840x2160_scrot

@genmeblog added:

I think we should also round numbers to, let's say, 6 decimal places.

Probably additional whitespace can also help. We should try rendering it in different pathways (e.g. in Clay, with/without Quarto).

Zulip discussion: https://clojurians.zulipchat.com/#narrow/channel/283491-scicloj.2Eml-dev/topic/printing.20linear.20regression.20-.20adjust.20for.20markdown

@daslu
Copy link
Author

daslu commented Oct 24, 2024

The image above was generated using the[:html] target with Clay 2-beta20.
We used Noj 2-alpha9.3, which depends on Fastmath 3.0.0-alpha2 and Kindly 4-beta12.

@genmeblog
Copy link
Contributor

The best would be fix it on the nextjournal/markdown side but I'm not sure if it's possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants