edbennett / lattice_workflow_survey

Analysis of a survey of reproducibility and open science in lattice field theory
Other
0 stars 0 forks source link

Enviroment variables --> configuration file #4

Open chillenzer opened 2 years ago

chillenzer commented 2 years ago

I usually refrain from using environment variables. If we want users to configure their runs without changing the notebook, wouldn't a configuration file be nicer?

edbennett commented 2 years ago

I don't particularly like environment variables, but I don't particularly like hardcoding the name of a configuration file either. Both are workarounds to the fact that jupyter nbconvert doesn't give a way to pass parameters or input to the notebook.

Could go for the best (and/or worst) of both worlds, with a configuration filename defined via environment variable?

chillenzer commented 2 years ago

Maybe that reveals the deeper question I have: Why is it a notebook? I personally prefer scripts.

edbennett commented 2 years ago

A few reasons: