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
from dash import Dash | |
import dash_mantine_components as dmc | |
from dash_iconify import DashIconify | |
app = Dash(__name__) | |
pages = ["home.py", "page1.py", "page2.py"] | |
assets = ["mycss.css", "app.png", "page1.png"] | |
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
# from Adam's video https://www.youtube.com/watch?v=2pWwSm6X24o&list=PLh3I780jNsiQObs1CGDIB1S_I7--M40yC | |
# data is stored in a dcc.Store(id="changed-cell") | |
app.clientside_callback( | |
""" | |
function (input,oldinput) { |
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
from dash import Dash, dcc, html, Input, Output | |
import dash_bootstrap_components as dbc | |
import requests | |
app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP, dbc.icons.BOOTSTRAP]) | |
def get_data(coin): | |
try: |
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
from dash import Dash, html, dcc, Input, Output | |
import numpy as np | |
import plotly.express as px | |
import dash_bootstrap_components as dbc | |
app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB]) | |
heading = html.H4( | |
"Normal Distribution Simulation", className="bg-primary text-white p-4" |
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
from dash import Dash, html, dcc, Input, Output | |
import numpy as np | |
import plotly.express as px | |
import dash_bootstrap_components as dbc | |
app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB]) | |
heading = html.H4( | |
"Normal Distribution Simulation", className="bg-primary text-white p-4" | |
) |
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
from dash import Dash, dcc, html, Input, Output | |
import dash_bootstrap_components as dbc | |
app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB]) | |
options = ["apples", "oranges", "bananas", "chocolate"] | |
app.layout = dbc.InputGroup( | |
[ | |
dcc.Dropdown(options, multi=True, id="fruit", style={"width":400}), |
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
# todo -add images for other themes | |
from dash import Dash, html, dcc | |
import dash_bootstrap_components as dbc | |
app = Dash(__name__, external_stylesheets=[dbc.themes.SPACELAB]) | |
themes = { |
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
from dash import Dash, dcc, html, Input, Output | |
import plotly.express as px | |
from dash_bootstrap_templates import load_figure_template | |
import dash_mantine_components as dmc | |
app = Dash(__name__) | |
iris = px.data.iris() | |
gapminder = px.data.gapminder() | |
tips = px.data.tips() |
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
from dash import Dash, html | |
import dash_bootstrap_components as dbc | |
app = Dash( | |
__name__, | |
external_stylesheets=[dbc.themes.BOOTSTRAP], | |
) | |
card = dbc.Card( |