Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin for creating environmental variables #786

Open
raybellwaves opened this issue Dec 24, 2021 · 2 comments
Open

plugin for creating environmental variables #786

raybellwaves opened this issue Dec 24, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@raybellwaves
Copy link
Contributor

raybellwaves commented Dec 24, 2021

I would like a plugin function to create environmental variables.

Motivation is for dask/dask-labextension#183 i.e. set
export DASK_DISTRIBUTED__DASHBOARD__LINK=/user/${JUPYTERHUB_USER}/proxy/8787/status

Proposed change

A function in https://github.com/jupyterhub/the-littlest-jupyterhub/blob/main/tljh/hooks.py called tljh_environmnetal_variables'

Alternative options

Maybe this can be done currently with https://github.com/jupyterhub/the-littlest-jupyterhub/blob/main/tljh/hooks.py#L69 but not sure how

os.environ["DASK_DISTRIBUTED__DASHBOARD__LINK"] = f"user/{os.getenv('JUPYTERHUB_USER')}/proxy/8787/status"

Not sure if it will persist though

Who would use this feature?

People who want to use the dask lab extension

(Optional): Suggest a solution

@raybellwaves raybellwaves added the enhancement New feature or request label Dec 24, 2021
@raybellwaves
Copy link
Contributor Author

Some work here

https://github.com/jupyterhub/the-littlest-jupyterhub/pull/414/files

If that goes could make that conf file plugable?

@raybellwaves
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant