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

display(fig) problems #21

Open
1 of 2 tasks
asinghvi17 opened this issue Sep 21, 2024 · 1 comment
Open
1 of 2 tasks

display(fig) problems #21

asinghvi17 opened this issue Sep 21, 2024 · 1 comment
Labels
question Further information is requested

Comments

@asinghvi17
Copy link
Collaborator

asinghvi17 commented Sep 21, 2024

I don't really like having to call display on every figure or "sub-figure" in a cell with multiple figures. There is a way to not have to do this in QuartoNotebookRunner - we can create a struct which QNB knows to expand. This way we can simply pass all of the figures in a hidden line.

The QNB devs are using this internally so we're reasonably sure it won't break.

Two questions arise.

  • How can you hide a single line in Quarto?
  • Is it worth it to add this complexity to the book? People won't see it when reading the textbook, but they will if they open it for e.g notes.
@Nowosad Nowosad added the question Further information is requested label Sep 22, 2024
@felixcremer
Copy link
Collaborator

There is a quarto extension code-visibility with which you can hide single lines in quarto
You have to add this to the header of the qmd:

filters:
  - code-visibility

This is the extension https://github.com/jjallaire/code-visibility
You can then add #| hide_line at the end of a line to hide it.

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

No branches or pull requests

3 participants