Hoping this question is not too vague, or asking for too much. Essentially I am analyzing large amounts of spectra, and wanting to create one large webpage that contains these spectra rather than looking at individual spectra. Attached is an example of what the end result should look like.
Each individual spectra on there is pulled from a massive library. It has been a long time since I have coded, so this is still a learning experience. I have managed to create a webpage, and pull forward a single spectra. But have not put those two together. Especially not on the scale of hundred of thousands. Presumably this is a matter of a for loop? If someone could help that would be amazing, point in some direction, or a template. This should be very easy, yet I am struggling. P.s. Much of my work right now is in anaconda python
Not too surprising you are little at sea with this project. It requires combining Python, HTML, and possibly CSS.
"Each individual spectra is pulled from a massive library" - I am going to assume in this answer that you have pulled the spectra of interest into a local directory and want to look at these in a web page served locally. I am also going to assume that all the png files are the same size.
If this is correct, what you want is to create a file of simple html that references all the png files, laying them out in a simple table. To do this the code needs to cd into the directory with the image files, open up an output file named "index.html" (the name is significant), use glob to get all the names of the spectra images, and loop over the names writing out the html for the page. Once you have the file created you can serve it locally with the command line command
You can then see your page by pointing the browser at
http://localhost:8000
.Here is an example implementation