Skip to content

Commit

Permalink
update command to open webbrowser from terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham3121 committed Sep 20, 2022
1 parent 838cece commit 79a5ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hagrid/hagrid/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from typing import Union
from typing import cast
from urllib.parse import urlparse
import webbrowser

# third party
import click
Expand Down Expand Up @@ -2791,8 +2792,7 @@ def display_jupyter_url(url_parts: Tuple[str, str, int]) -> None:


def open_browser_with_url(url: str) -> None:
cmd = f"python -m webbrowser '{url}'"
os.popen(cmd)
webbrowser.open(url)


def extract_jupyter_url(line: str) -> Optional[Tuple[str, str, int]]:
Expand Down

0 comments on commit 79a5ea8

Please sign in to comment.