-
Notifications
You must be signed in to change notification settings - Fork 18
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
new-post: pdf and ROOT file previews in web UI #36
base: master
Are you sure you want to change the base?
new-post: pdf and ROOT file previews in web UI #36
Conversation
|
For a long time, the REANA web UI has allowed users to preview certain types of files present in the | ||
workflow workspace. This has proven to be very handy for users who want to quickly glance through | ||
images and text files in their workspaces without having to download them. We are now extending | ||
this capability to PDF and ROOT files as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a small comment: I like this paragraph a lot, it's very well written!
I think showing the browser window is good for screenshots of the whole web page, while I would not show the window when considering only a part of the page.
I think this is a good idea! Maybe we can also investigate whether to use a video instead of a GIF? As an example, MP4 should be a widely supported video format, so we can test whether we can have better quality and/or smaller size compared to a GIF. Looking a bit into other blogs (e.g. GitHub, GitLab), I see that GIF are widely used, with occasional MP4 videos. |
5cb073c
to
c360b6d
Compare
At first I went for the "mockupped" version of the screenshot because the file preview is almost as big as the browser window, but then I realized that, even with an high-resolution image or video, most of the details of the ROOT file previewer are lost. Right now the blog post only shows the "cropped" version of the images, but you can try to replace them in the markdown file with
Right now the resolution of the GIF is quite good, with a size of a couple of megabytes. MP4 works okay, but it's quite larger in size compared to the GIF. I also tried to experiment with WebM, which is widely supported by browsers, and it worked well, but unless we want a smoother animation, I think that using the GIF is the best option. |
c360b6d
to
30f9b56
Compare
I do not see the "mockup" version of the images, but I guess the ones without the fake browser window are good.
Let's keep the GIF version then, as it is supported basically everywhere. |
|
||
## PDF files preview | ||
|
||
Starting from REANA 0.9.1, when you click on a PDF file in your workflow's workspace in the web UI, an embedded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(very minor) Trailing space:
Starting from REANA 0.9.1, when you click on a PDF file in your workflow's workspace in the web UI, an embedded | |
Starting from REANA 0.9.1, when you click on a PDF file in your workflow's workspace in the web UI, an embedded |
|
||
Starting from REANA 0.9.1, when you click on a PDF file in your workflow's workspace in the web UI, an embedded | ||
PDF viewer will load the document. You will be able to scroll through pages, zoom in and out, | ||
or even download the PDF if necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(very minor) Trailing space:
or even download the PDF if necessary. | |
or even download the PDF if necessary. |
![ROOT file preview](/images/root-files-preview.gif) | ||
|
||
These enhancements aim to save time and streamline the process of navigating and inspecting files | ||
in your REANA workflow workspace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(very minor) Trailing space:
in your REANA workflow workspace. | |
in your REANA workflow workspace. |
30f9b56
to
fc8d579
Compare
date: 2023-06-26T14:00:00+01:00 | ||
--- | ||
|
||
We are excited to announce that the REANA web interface now supports previewing of PDF and ROOT files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that 0.9.1 is out, we should leave this paragraph and simply announce the novelty "less enthusiastically", since it has been out for some time, and many people may have noticed.
So I'd start simply with "For a long time, the REANA web interface..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, on the similar tune: it may be better to enlarge the scope of this blog post to present everything previewable, so to speak. Hence we could show an example of previewing HTML files by means of Snakemake report, say that it was there since quite some time, and only then speak about PDF and ROOT that were added recently. In this way, the blog post could serve as a comprehensive information for the file previewing topic, also for future reference. This will make its value apparent so that people wouldn't think "why another blog post for something that was already announced (albeit in a few lines)". If we go for this, the blog post title should obviously change too, into something more generic, for example "Previewing your workspace files".
<!--more--> | ||
|
||
For a long time, the REANA web UI has allowed users to preview certain types of files present in the | ||
workflow workspace. This has proven to be very handy for users who want to quickly glance through |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very handy -> very convenient
|
||
## ROOT files preview | ||
|
||
ROOT files can also be previewed directly in the web UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be useful to link, since some REANA readers from other scientific disciplines may not be familiar with ROOT. Hence:
ROOT files...
and download the file if needed. | ||
Here you can see the ROOT file viewer in action: | ||
|
||
![ROOT file preview](/images/root-files-preview.gif) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The image needs update and can be taken from the 0.9.1 release blog post.
in your REANA workflow workspace. | ||
We are continually working on improving your experience with REANA, and we hope that | ||
they will prove beneficial in your research and data analysis. | ||
If you have any feedback or suggestions, please don't hesitate to reach out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... or suggestions for supporting previewing other file types, please ...
If you have any feedback or suggestions, please don't hesitate to reach out. | ||
|
||
## See also: | ||
- [Previewing HTML files since REANA 0.8.1](/posts/2022/reana-0.8.1/#previewing-html-workspace-files-directly) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need also to link to https://blog.reana.io/posts/2023/reana-0.9.1/#previewing-pdf-and-root-files
I would call the first item "Previewing HTML files" (since REANA 0.8.1), and the second list item "Previewing PDF and ROOT files" (since REANA 0.9.1).
Changes to be implemented after 0.9.1is out
@@ -0,0 +1,46 @@ | |||
--- | |||
title: "Introducing PDF and ROOT file previews in REANA web" | |||
date: 2023-06-26T14:00:00+01:00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also change the date to e.g. Thursday November 16th.
fc8d579
to
1072def
Compare
date: 2023-11-13T14:00:00+01:00 | ||
--- | ||
|
||
For a long time, the REANA web UI has allowed users to preview certain types of files present in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we take the stand to present a teaching-blog-post rather than news-blog-post, then we coudl better use the present tense, for example:
- The REANA web interface allows to preview several file types that are present in your orkflow workspaces. This may be very convenient to quickly glance through the produced outputs without having to download them first. The supported file types for interactive preview include text files, images, PDF files, and ROOT files.
That could be the introduction before diving further.
|
||
<!--more--> | ||
|
||
## Images and text files preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Images and text files are quite different, so in the teaching-blog-post style, let's separate the two, and start speaking only about the text files. The table-of-contents would then go like:
- Previewing text files
- Previewing images
- Previewing HTML files
- Previewing PDF files
- Previewing ROOT files
## Images and text files preview | ||
|
||
Probably amongst the most common file types in a workflow workspace are images and text files. The web UI has | ||
always allowed to preview them from a modal window opened just by clicking on the name of the file in the workspace list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, instead of "allowed" etc in the past tense, we can rephrase the whole thing to use present tense, in the spirit of the "teaching mode" style of the blog post.
Also, I would add one more screenshot of the naked Workspace tab, to develop the story fully from scratch.
Going like:
- REANA web interface allows to inspect the content of your workspaces using the Workspace tab (-> picture)
- You can click on any text file there, C code, Python code, etc (-> picture)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, as for images, we could preview the produced PNG plot.
|
||
## HTML files preview | ||
|
||
Since REANA 0.8.1, users have been able to preview HTML files directly in the web UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again we can replace "past" by "present" and go like:
- The previewing of HTML files can be valuable especially for Snakemake users. The Snakemake workflow execution creates a detailed report in the HTML format. You can search your workspace for "report.html" and preview it in a new browser tab:
This feature remains a valuable asset, allowing for example immediate visibility into Snakemake | ||
reports and other HTML-based documentation pages directly within the browser. | ||
|
||
![HTML file preview](/images/snakemake-support-report.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW it may be nicer to use the CMS H4l example which produces a richer report:
Well, speaking of this, the Snakemake reports can be much richer, for example see this upstream example:
However we don't have such a rich report defined yet in any of our REANA demo examples.
It may be perhaps worth to take the time and enrich either the RooFit example or the CMS H4l example to produce such a richer Snakemake report including final plots with descriptions etc?
workspace. | ||
Here is a sneak peek of how it looks: | ||
|
||
![PDF file preview](/images/pdf-files-preview.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BSM example would be perhaps better to show here, since we could show both the workflow PDF display and the final postfit plot (which is in PDF as well).
(Not necessary to switch, just musing out loud.)
|
||
![ROOT file preview](/images/reana-0.9.1-root-preview.png) | ||
|
||
These enhancements aim to save time and streamline the process of navigating and inspecting files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the optics of moving from news-announcement style to teaching-blog-post style, you could leave out the phrase "These announcements..." and directly end the blog post with "We are continually improving...". This could go simply like this:
- We hope that the interactive file preview feature is proving to be beneficial in your usage of the REANA web interface. We are striving to continually improve the usability of the system based on your feedback and suggestions. Pease let us know if you would like to support previewing more file types!
1072def
to
7a580ec
Compare
No description provided.