-
Notifications
You must be signed in to change notification settings - Fork 17
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
Option to center-justify the figures in the SoS-generated html that were tagged with "report_output"? #120
Comments
It is easy to implement but I am not sure if I should set this as default. What is the default for I actually have been thinking of changing the workflow of the report template. I mean, right now,
It would be more natural to
Also, notice that JupyterLab supports collapse of output and cells, it would be easier to hide collapsed cells instead of introducing our own tags. |
How about creating tags for justifying the output (e.g.
I actually like this workflow, as this way I only need to tag a few cells with report output or scratch. The other way (showing all by default), would require me to tag many more code cells to hide them by default. By default, I like that code cells are hidden, but I'm just a new user =) |
Just tried a R notebook and the figure is left justified, but look more or less centered because the default size is very large. |
The tag idea is acceptable but I would like to make it more general, and this is one of the reasons why I wanted consistent behavior for the tags. That is to say,
Then in the template we simply need to include all tags as classes. Finally, we can think of a way to embed or include external css files in the output HTML, which would allow users to define arbitrary css and use tags to apply them to the report cells. (Something like |
@HenryLeongStat Do you want to tackle this? This looks like something that is relatively easy and useful (Jinja2) to you. Just to add that one row of the table in https://vatlab.github.io/sos-docs/doc/examples/Preview_and_Report_Generation.html is not rendered correctly. |
Sure!! It sounds interesting! :D |
Great, please
|
Will do! |
@mathieuboudreau Before the feature is baked in sos, you can add the css to your report as follows:
|
@BoPeng Thanks!! However, I tried it and it did not center my figures. For reference, this is the file I just tried: https://github.com/qMRLab/t1_notebooks/blob/master/ir_notebooks/ModellingSignal.ipynb |
This template ended up working!
A+ |
Yes, you figures might not have an |
Is there a way to do this – if not, could this be implemented? I know I could likely go in and customize the html myself for each generate file, but this seems like a feature that a large portion of the users would want and benefit from (left-justified output figures don't look right in the current format when paragraphs surround them).
The text was updated successfully, but these errors were encountered: