edina / nbexchange

External exchange for nbgrader
Other
6 stars 2 forks source link

Provide a way of changing the default service prefix /services/nbexchange/ for plugins #170

Open ykazakov opened 1 month ago

ykazakov commented 1 month ago

According to README, the extension point on which the nbexchange service is running can be configured by setting the environment variable JUPYTERHUB_SERVICE_PREFIX. (Is it intended for use with JupyterHub?)

However, for nbgrader plugins, this path seems to be hardcoded:

https://github.com/edina/nbexchange/blob/985796a553a56f4ee39f74f46ab8577a9c263728/nbexchange/plugin/exchange.py#L33-L36

Please provide a convenient way of changing this value. Preferably as a configuration option that can be set in nbgrader_config.py similarly as for setting up the exchange.