Programmatically Export to HTML from Within Notebook With Custom Output Path

Does your JupyterHub allow access to the os.environ.items()/ envs from inside the notebook? See example code in this post and related discussion above it.