Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to Shiny for Python will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [UNRELEASED]

### New features

### Other changes

* Require shinyswatch >= 0.7.0 and updated examples accordingly. (#1558)

### Bug fixes

### Deprecations

## [1.0.0] - 2024-07-18

### New features
Expand Down
4 changes: 2 additions & 2 deletions examples/dataframe/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd
import seaborn as sns
from shinyswatch.theme import darkly
import shinyswatch

from shiny import App, Inputs, Outputs, Session, reactive, render, req, ui

Expand All @@ -12,7 +12,6 @@ def app_ui(req):
ui.head_content(
ui.tags.meta(name="viewport", content="width=device-width, initial-scale=1")
),
darkly() if dark else None,
light_dark_switcher(dark),
ui.input_select("dataset", "Dataset", sns.get_dataset_names()),
ui.input_select(
Expand All @@ -35,6 +34,7 @@ def app_ui(req):
right="10px",
bottom="10px",
),
theme=shinyswatch.theme.darkly if dark else None,
class_="p-3",
)

Expand Down
4 changes: 2 additions & 2 deletions examples/duckdb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path

import duckdb
import shinyswatch.theme as theme
import shinyswatch
from query import query_output_server, query_output_ui

from shiny import App, reactive, ui
Expand Down Expand Up @@ -31,7 +31,6 @@ def load_csv(con, csv_name, table_name):
button_style = {"style": "margin: 15px"}

app_ui = ui.page_fluid(
theme.flatly(),
ui.panel_title("DuckDB query explorer"),
ui.row(
ui.column(
Expand Down Expand Up @@ -63,6 +62,7 @@ def load_csv(con, csv_name, table_name):
),
),
),
theme=shinyswatch.theme.flatly,
)


Expand Down
2 changes: 1 addition & 1 deletion examples/duckdb/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
duckdb
shiny
shinyswatch==0.2.3
shinyswatch
pandas
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ dev =
pandas-stubs
polars
numpy
shinyswatch>=0.2.4
shinyswatch>=0.7.0
python-dotenv
# Chat() provider types
anthropic
Expand Down
2 changes: 1 addition & 1 deletion shiny/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""A package for building reactive web applications."""

__version__ = "1.0.0"
__version__ = "1.0.0.9000"

from ._shinyenv import is_pyodide as _is_pyodide

Expand Down
2 changes: 1 addition & 1 deletion shiny/api-examples/todo_list/app-core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

app_ui = ui.page_fixed(
{"class": "my-5"},
shinyswatch.theme.minty(),
ui.panel_title("Shiny TodoMVC"),
ui.layout_sidebar(
ui.sidebar(
Expand All @@ -15,6 +14,7 @@
ui.output_text("cleared_tasks"),
ui.div(id="tasks", style="margin-top: 0.5em"),
),
theme=shinyswatch.theme.minty,
)


Expand Down