Skip to content

Commit

Permalink
Delete the extra “or” that prevents easy cut-and-paste of URLs.
Browse files Browse the repository at this point in the history
Before this PR, the default output of server urls looks like:

    Or copy and paste one of these URLs:
        http://localhost:8888/?token=…
     or http://127.0.0.1:8888/?token=…

This makes it easy to triple-click on the first line to copy and paste it into a browser. However, triple-clicking on the second line picks up the extra “or”, so you can’t just copy and paste it into the browser. Instead, you have to explicitly select each character by dragging your mouse, avoiding the “or”.

This change deletes the “or” so you can just triple-click on the second line to copy and paste the url.
  • Loading branch information
jasongrout committed Mar 26, 2021
1 parent 1446ecc commit 0567a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ def display_url(self):

url = (
self.get_url(ip=ip, path=path, token=token)
+ '\n or '
+ '\n '
+ self.get_url(ip='127.0.0.1', path=path, token=token)
)
return url
Expand Down

0 comments on commit 0567a67

Please sign in to comment.