DEV Community

Discussion on: Automatic Reporting in Python - Part 3: Packaging It Up

 
goyder profile image
goyder

Hey Leif,

Thanks for the comparison of functional/non-functional calls - gives me a lot more context on where the issue might be.

You'll need to provide a relative path to the datasets (relative to the script) to get it to run if you have have your datasets under the folder - i.e. run python Autoreport.py datasets/LAS318_results.csv datasets/LAS319_results.csv datasets/LAS320_results.csv. In its current form, the script won't search any subfolders.

(It's curious to me that the FileNotFoundError is returning a byte string, indicated the b in front of the filepath... that makes me raise an eyebrow.)

I hadn't planned on adding any additional examples around how to publish images in the reports, but in previous projects I've added similar features. The key questions that I worked through were:

  • How do I present the images in the report? Do I present them all, just provide links, or have some kind of interactive tool?
  • Where do I store the images for access? Do I keep a local copy of all the images (and if so, how do I manage moving the report around)? Should I push all the images to be hosted somewhere else - or even inside the .html file somehow?

These questions are a little outside of Python and more into web dev, which I am definitely not an expert in. They're all very interesting options to explore, however.