Skip to content

Commit

Permalink
fix plotly DASH_REQUESTS_PATHNAME_PREFIX env
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Aug 28, 2023
1 parent d628c88 commit 7971f09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jhub_apps/spawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def get_env(self):

if self.user_options.get("jhub_app"):
framework = self.user_options.get("framework")
framework_env = COMMANDS.get(framework).get("env", {})
print(f"framework_env: {framework_env}")
# env.update(framework_env)
print(f"Updated environment: {env}")
if framework == "plotlydash":
jh_service_prefix = env.get("JUPYTERHUB_SERVICE_PREFIX")
env["DASH_REQUESTS_PATHNAME_PREFIX"] = jh_service_prefix
print(f"Updated environment: {type(env)} {env}")
return env

async def start(self):
Expand Down

0 comments on commit 7971f09

Please sign in to comment.