From cef6cd9265868a5911bd8538e41c6ba1b70cd38d Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Fri, 26 Jul 2024 15:55:39 -0500 Subject: [PATCH] Test whether we can remove altair soft_dependencies hack (#188) * Test whether we can remove altair soft_dependencies hack * Use py-shinylive 0.5.1 Co-authored-by: Carson Sievert --------- Co-authored-by: Winston Chang --- docs/jupyter-widgets.qmd | 20 -------------------- docs/overview.qmd | 10 ---------- requirements.txt | 2 +- 3 files changed, 1 insertion(+), 31 deletions(-) diff --git a/docs/jupyter-widgets.qmd b/docs/jupyter-widgets.qmd index 06a27e6..89e0942 100644 --- a/docs/jupyter-widgets.qmd +++ b/docs/jupyter-widgets.qmd @@ -56,7 +56,6 @@ To render an ipywidget you first define a reactive function that returns the wid from shiny.express import input, ui from shinywidgets import render_altair -import soft_dependencies ui.input_selectize("var", "Select variable", choices=["bill_length_mm", "body_mass_g"]) @@ -75,15 +74,6 @@ def hist(): altair anywidget palmerpenguins -jsonschema -jsonschema - specifications -## file: soft_dependencies.py -# Temporary workaround to inform shinylive of soft dependencies -import anywidget -import jsonschema -import jsonschema_specifications -import mypy_extensions -import toolz ``` ##### Bokeh @@ -394,7 +384,6 @@ import altair as alt from shiny.express import render from shinywidgets import reactive_read, render_altair from vega_datasets import data -import soft_dependencies "Click the legend to update the selection" @@ -422,15 +411,6 @@ def jchart(): altair anywidget vega_datasets -jsonschema -jsonschema-specifications -## file: soft_dependencies.py -# Temporary workaround to inform shinylive of soft dependencies -import anywidget -import jsonschema -import jsonschema_specifications -import mypy_extensions -import toolz ``` diff --git a/docs/overview.qmd b/docs/overview.qmd index 0c49874..976fda7 100644 --- a/docs/overview.qmd +++ b/docs/overview.qmd @@ -141,7 +141,6 @@ See the [Jupyter Widgets article](jupyter-widgets.qmd) for more information on r from shiny.express import input, ui from shinywidgets import render_altair -import soft_dependencies ui.input_selectize( "var", "Select variable", @@ -162,15 +161,6 @@ def hist(): altair anywidget palmerpenguins -jsonschema -jsonschema-specifications -## file: soft_dependencies.py -# Temporary workaround to inform shinylive of soft dependencies -import anywidget -import jsonschema -import jsonschema_specifications -import mypy_extensions -import toolz ``` ##### Bokeh diff --git a/requirements.txt b/requirements.txt index b8eb851..1f8dd8b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ jupyter jupyter_client < 8.0.0 tabulate -shinylive==0.5.0 +shinylive==0.5.1 matplotlib==3.8.1 shiny seaborn==0.13.0