Skip to content

Commit c8588ef

Browse files
committed
Delete the extra “or” that prevents easy cut-and-paste of URLs.
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.
1 parent 500e94e commit c8588ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/serverapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ def display_url(self):
15231523

15241524
url = (
15251525
self.get_url(ip=ip, path=path, token=token)
1526-
+ '\n or '
1526+
+ '\n '
15271527
+ self.get_url(ip='127.0.0.1', path=path, token=token)
15281528
)
15291529
return url

0 commit comments

Comments
 (0)