This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dash | |
from dash import html, dcc | |
from dash.dependencies import Input, Output | |
import pandas as pd | |
import numpy as np | |
import plotly.graph_objs as go | |
import plotly.express as px | |
import dash_bootstrap_components as dbc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
import pandas as pd | |
import numpy as np | |
import plotly.express as px | |
from dash_bootstrap_templates import load_figure_template | |
# I was too lazy to configure the charts individually, and this dash library served very well :) | |
load_figure_template('minty') | |
st.set_page_config(layout="wide") | |
# ========== Data Preparation ========== # | |
@st.cache(allow_output_mutation=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dash | |
import dash_html_components as html | |
import dash_core_components as dcc | |
app = dash.Dash(__name__) | |
app.layout = html.Div([ | |
dcc.Graph(id="main-graph", figure=fig) | |
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
st.write(fig) |