mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
Discovery controller to close figures when in menu
This commit is contained in:
@@ -4,6 +4,7 @@ __docformat__ = "numpy"
|
||||
import argparse
|
||||
import os
|
||||
from typing import List
|
||||
from matplotlib import pyplot as plt
|
||||
from prompt_toolkit.completion import NestedCompleter
|
||||
from gamestonk_terminal import feature_flags as gtff
|
||||
from gamestonk_terminal.helper_funcs import get_flair
|
||||
@@ -209,6 +210,8 @@ def menu():
|
||||
an_input = input(f"{get_flair()} (disc)> ")
|
||||
|
||||
try:
|
||||
plt.close("all")
|
||||
|
||||
process_input = disc_controller.switch(an_input)
|
||||
|
||||
if process_input is not None:
|
||||
|
||||
Reference in New Issue
Block a user