Skip to content

Instantly share code, notes, and snippets.

View Spyhuntr's full-sized avatar

Spyhuntr

  • 06:28 (UTC -05:00)
View GitHub Profile
@Spyhuntr
Spyhuntr / main.py
Last active October 10, 2022 22:13
Plotly/Dash DMC Card with Embedded Chart
"""
This is a minimal example of a card UI component with a chart embedded in it
Note - this requires dash_mantine_components and dash>=2.5.1 and pandas.
"""
from dash import html, Dash, dcc, Input, Output, callback
import dash_mantine_components as dmc
import pandas as pd
import plotly.express as px
from datetime import datetime
@Spyhuntr
Spyhuntr / dash_dmc_sidebar.py
Last active October 10, 2022 22:14
Plotly/Dash DMC Collapsible Sidebar
"""
This is a minimal example of a collapsible side navbar
Note - this requires dash_mantine_components and dash>=2.5.1.
"""
from dash import html, Dash, dcc
import dash_mantine_components as dmc
app = Dash(__name__,
external_stylesheets=[