Jupyter book settings are defined in _config.yml; however, you can customize it on-the-fly using the yaml module to read and write _config.yml....