Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/penguins/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# TODO-future: Add filter of X varaible to reduce the data? (Here we would show "Gentoo" has count 0, rather than remove if no data exists)
# TODO-future: Add brushing to zoom into the plot. The counts should represent the data in the zoomed area. (Single click would zoom out)

import warnings
from pathlib import Path
from typing import List

import matplotlib
import pandas as pd
import seaborn as sns
import shinyswatch
Expand All @@ -12,6 +14,13 @@
import shiny.experimental as x
from shiny import App, Inputs, Outputs, Session, reactive, render, req, ui

# There is a matplotlib bug which causes CI failures
# see https://github.com/rstudio/py-shiny/issues/611#issuecomment-1632866419
if matplotlib.__version__ == "3.7.2":
warnings.filterwarnings(
"ignore", category=UserWarning, message="The figure layout has changed to tight"
)

sns.set_theme()

www_dir = Path(__file__).parent.resolve() / "www"
Expand Down