mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
Move start plot backend (#4454)
* move start plot backend * update sdk helper
This commit is contained in:
@@ -21,8 +21,11 @@ theme = _TerminalStyle(
|
||||
current_user.preferences.RICH_STYLE,
|
||||
)
|
||||
|
||||
|
||||
# Start the plots backend
|
||||
plots_backend().start(load_env_vars("DEBUG_MODE", strtobool, False))
|
||||
def start_plot_backend():
|
||||
"""Starts the plot backend"""
|
||||
plots_backend().start(load_env_vars("DEBUG_MODE", strtobool, False))
|
||||
|
||||
|
||||
def start_required_configurations():
|
||||
|
||||
@@ -353,6 +353,7 @@ from openbb_terminal.core.session.current_user import is_local
|
||||
from openbb_terminal.terminal_helper import is_auth_enabled
|
||||
|
||||
cfg.start_required_configurations()
|
||||
cfg.start_plot_backend()
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
theme.applyMPLstyle()
|
||||
|
||||
@@ -24,6 +24,7 @@ from openbb_terminal.core.session.current_user import is_local
|
||||
from openbb_terminal.terminal_helper import is_auth_enabled
|
||||
|
||||
cfg.start_required_configurations()
|
||||
cfg.start_plot_backend()
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
theme.applyMPLstyle()
|
||||
|
||||
@@ -23,6 +23,7 @@ from prompt_toolkit.formatted_text import HTML
|
||||
from prompt_toolkit.styles import Style
|
||||
from rich import panel
|
||||
|
||||
import openbb_terminal.config_terminal as cfg
|
||||
from openbb_terminal.common import feedparser_view
|
||||
from openbb_terminal.core.config.paths import (
|
||||
HOME_DIRECTORY,
|
||||
@@ -1236,6 +1237,8 @@ def main(
|
||||
if debug:
|
||||
os.environ["DEBUG_MODE"] = "true"
|
||||
|
||||
cfg.start_plot_backend()
|
||||
|
||||
if isinstance(path_list, list) and path_list[0].endswith(".openbb"):
|
||||
run_routine(file=path_list[0], routines_args=routines_args)
|
||||
elif path_list:
|
||||
|
||||
Reference in New Issue
Block a user