From 975387bd626e10357cf226e8972968658bc4811a Mon Sep 17 00:00:00 2001 From: DidierRLopes Date: Sat, 22 Apr 2023 18:05:21 -0700 Subject: [PATCH] make intro spin up pywry window with usage basics (#4871) --- openbb_terminal/terminal_controller.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/openbb_terminal/terminal_controller.py b/openbb_terminal/terminal_controller.py index d532fb10c04f..48096d52cd90 100644 --- a/openbb_terminal/terminal_controller.py +++ b/openbb_terminal/terminal_controller.py @@ -501,16 +501,17 @@ def call_funds(self, _): def call_intro(self, _): """Process intro command.""" - import json + webbrowser.open("https://docs.openbb.co/terminal/usage/basics") + # import json - intro: dict = json.load((Path(__file__).parent / "intro.json").open()) # type: ignore + # intro: dict = json.load((Path(__file__).parent / "intro.json").open()) # type: ignore - for prompt in intro.get("prompts", []): - console.print(panel.Panel(f"[purple]{prompt['header']}[/purple]")) - console.print("".join(prompt["content"])) - if input("") == "q": - break - console.print("\n") + # for prompt in intro.get("prompts", []): + # console.print(panel.Panel(f"[purple]{prompt['header']}[/purple]")) + # console.print("".join(prompt["content"])) + # if input("") == "q": + # break + # console.print("\n") def call_exe(self, other_args: List[str]): """Process exe command.""" @@ -705,11 +706,11 @@ def terminal(jobs_cmds: Optional[List[str]] = None, test_mode=False): if first_time_user(): try: - t_controller.call_intro(None) + # t_controller.call_intro(None) + webbrowser.open("https://docs.openbb.co/terminal/usage/basics") # TDDO: Fix the CI except EOFError: pass - t_controller.print_help() check_for_updates()