Skip to content

Commit

Permalink
display_url: Don't duplicate public_url and local_url if they are the…
Browse files Browse the repository at this point in the history
… same
  • Loading branch information
manics committed Jan 26, 2025
1 parent dd7daf9 commit 47b53c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,9 @@ def display_url(self) -> str:
"""Human readable string with URLs for interacting
with the running Jupyter Server
"""
url = self.public_url + "\n " + self.local_url
url = self.public_url
if self.public_url != self.local_url:
url = f"{url}\n {self.local_url}"
return url

@property
Expand Down

0 comments on commit 47b53c0

Please sign in to comment.