Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,17 +9,6 @@ from scipy.optimize import minimize
|
|
| 9 |
from scipy.cluster.hierarchy import dendrogram
|
| 10 |
import matplotlib.pyplot as plt
|
| 11 |
|
| 12 |
-
st.markdown(
|
| 13 |
-
"""
|
| 14 |
-
<style>
|
| 15 |
-
/* Adjust the width of the sidebar */
|
| 16 |
-
[data-testid="stSidebar"] {
|
| 17 |
-
width: 400px; /* Change this value to set the width you want */
|
| 18 |
-
}
|
| 19 |
-
</style>
|
| 20 |
-
""",
|
| 21 |
-
unsafe_allow_html=True
|
| 22 |
-
)
|
| 23 |
|
| 24 |
# Helper functions
|
| 25 |
def fetch_stock_data(tickers, start_date, end_date):
|
|
@@ -1491,6 +1480,21 @@ elif selected == "Maximum Quadratic Utility Portfolio":
|
|
| 1491 |
st.plotly_chart(fig_drawdown)
|
| 1492 |
|
| 1493 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1494 |
hide_streamlit_style = """
|
| 1495 |
<style>
|
| 1496 |
#MainMenu {visibility: hidden;}
|
|
|
|
| 9 |
from scipy.cluster.hierarchy import dendrogram
|
| 10 |
import matplotlib.pyplot as plt
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Helper functions
|
| 14 |
def fetch_stock_data(tickers, start_date, end_date):
|
|
|
|
| 1480 |
st.plotly_chart(fig_drawdown)
|
| 1481 |
|
| 1482 |
|
| 1483 |
+
|
| 1484 |
+
st.markdown(
|
| 1485 |
+
"""
|
| 1486 |
+
<style>
|
| 1487 |
+
/* Adjust the width of the sidebar */
|
| 1488 |
+
[data-testid="stSidebar"] {
|
| 1489 |
+
width: 400px; /* Change this value to set the width you want */
|
| 1490 |
+
}
|
| 1491 |
+
</style>
|
| 1492 |
+
""",
|
| 1493 |
+
unsafe_allow_html=True
|
| 1494 |
+
)
|
| 1495 |
+
|
| 1496 |
+
|
| 1497 |
+
|
| 1498 |
hide_streamlit_style = """
|
| 1499 |
<style>
|
| 1500 |
#MainMenu {visibility: hidden;}
|