diff --git a/openbb_terminal/helper_funcs.py b/openbb_terminal/helper_funcs.py index ff3edf9ca32..09e8fef2957 100644 --- a/openbb_terminal/helper_funcs.py +++ b/openbb_terminal/helper_funcs.py @@ -20,8 +20,6 @@ from functools import lru_cache from pathlib import Path from typing import Dict, List, Optional, Tuple, Union -import pytz -import pandas as pd from rich.table import Table import iso8601 import matplotlib @@ -36,13 +34,12 @@ from holidays import US as us_holidays from pandas._config.config import get_option from pandas.plotting import register_matplotlib_converters from PIL import Image, ImageDraw -from rich.table import Table from screeninfo import get_monitors from openbb_terminal import config_plot as cfgPlot from openbb_terminal import config_terminal as cfg from openbb_terminal import feature_flags as obbff -from openbb_terminal.core.config import paths +from openbb_terminal.rich_config import console from openbb_terminal.core.config.paths import ( HOME_DIRECTORY, USER_EXPORTS_DIRECTORY, diff --git a/openbb_terminal/keys_model.py b/openbb_terminal/keys_model.py index 544101ecae1..5b67cbbb62b 100644 --- a/openbb_terminal/keys_model.py +++ b/openbb_terminal/keys_model.py @@ -33,14 +33,11 @@ from openbb_terminal.cryptocurrency.coinbase_helpers import ( CoinbaseProAuth, make_coinbase_request, ) -from openbb_terminal import config_terminal as cfg -from openbb_terminal.core.config.paths import USER_ENV_FILE from openbb_terminal.rich_config import console from openbb_terminal.session.hub_model import patch_user_configs from openbb_terminal.session.user import User from openbb_terminal.helper_funcs import request from openbb_terminal.portfolio.brokers.degiro.degiro_model import DegiroModel -from openbb_terminal.rich_config import console from openbb_terminal.terminal_helper import suppress_stdout logger = logging.getLogger(__name__) diff --git a/openbb_terminal/terminal_controller.py b/openbb_terminal/terminal_controller.py index 0768fe469d8..15f36c2f8c9 100644 --- a/openbb_terminal/terminal_controller.py +++ b/openbb_terminal/terminal_controller.py @@ -21,13 +21,12 @@ import pandas as pd from prompt_toolkit import PromptSession from prompt_toolkit.completion import NestedCompleter from prompt_toolkit.formatted_text import HTML -import pandas as pd -from openbb_terminal import feature_flags as obbff -from openbb_terminal.session.user import User -from openbb_terminal.terminal_helper import is_installer, is_packaged_application -from openbb_terminal.session import session_controller +from prompt_toolkit.styles import Style +from rich import panel from openbb_terminal import feature_flags as obbff +from openbb_terminal.session.user import User +from openbb_terminal.session import session_controller from openbb_terminal.common import feedparser_view from openbb_terminal.core.config.paths import ( HOME_DIRECTORY, @@ -38,7 +37,6 @@ from openbb_terminal.core.config.paths import ( USER_ROUTINES_DIRECTORY, load_dotenv_with_priority, ) -from openbb_terminal.core.log.generation.settings_logger import log_all_settings from openbb_terminal.helper_funcs import ( EXPORT_ONLY_RAW_DATA_ALLOWED, check_positive, @@ -59,11 +57,9 @@ from openbb_terminal.terminal_helper import ( suppress_stdout, update_terminal, welcome_message, + is_installer, ) -from openbb_terminal.helper_funcs import parse_and_split_input from openbb_terminal.keys_model import first_time_user -from openbb_terminal.common import feedparser_view -from openbb_terminal.reports.reports_model import ipykernel_launcher from openbb_terminal.core.log.generation.custom_logger import log_terminal # pylint: disable=too-many-public-methods,import-outside-toplevel, too-many-function-args