From fbfcb072e62c31b08f904a40497a374c10d3969a Mon Sep 17 00:00:00 2001 From: zhaoxf Date: Wed, 28 Jun 2023 11:25:58 +0800 Subject: [PATCH 1/2] fix some error to run - IndentationError: unindent does not match any outer indentation level - NameError: name 'TerminalStyle' is not defined - ModuleNotFoundError: No module named 'arch' --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 76701b3..64aac51 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ streamlit pandas openbb==3.0.0 plotly +arch From 592fbe8c53002112bd509cd2da883dd54cba625d Mon Sep 17 00:00:00 2001 From: zhaoxf Date: Wed, 28 Jun 2023 11:25:58 +0800 Subject: [PATCH 2/2] fix some error to run - IndentationError: unindent does not match any outer indentation level - NameError: name 'TerminalStyle' is not defined - ModuleNotFoundError: No module named 'arch' --- OpenBBxStreamlit.py | 16 +++++++++------- requirements.txt | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/OpenBBxStreamlit.py b/OpenBBxStreamlit.py index 4da0efe..7077228 100644 --- a/OpenBBxStreamlit.py +++ b/OpenBBxStreamlit.py @@ -1,6 +1,8 @@ import streamlit as st import pandas as pd from openbb_terminal.sdk import openbb +from openbb_terminal.sdk import TerminalStyle + openbb.keys.fred(key = '9cbe93cd8132301fd46ad5e755944df0', persist = True) TerminalStyle().applyMPLstyle() st.set_page_config( @@ -175,11 +177,11 @@ def color_negative_red(val): st.subheader('Vol Surface of {}'.format(text_input)) st.pyplot(openbb.stocks.options.vsurf_chart(symbol=text_input)) - col1, col2, col3 = st.columns([30,30,30]) - with col1: - st.write - with col2: - st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress')) +col1, col2, col3 = st.columns([30,30,30]) +with col1: + st.write +with col2: + st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress')) - with col3: - st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress')) +with col3: +st.pyplot(openbb.stocks.gov.gtrades_chart(symbol=text_input, gov_type = 'congress')) diff --git a/requirements.txt b/requirements.txt index 76701b3..64aac51 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ streamlit pandas openbb==3.0.0 plotly +arch