From f0086f59e42b278c69357748bef15840f25d114f Mon Sep 17 00:00:00 2001 From: Carson Date: Thu, 25 Jan 2024 19:50:24 -0600 Subject: [PATCH] Revert "Bump to newest shinylive release; get rid of soft_dependencies workaround" This reverts commit 6b9591e1c2abba8f330803cf26e4651f7feb6e4a. --- docs/jupyter-widgets.qmd | 7 +++++++ docs/quick-start.qmd | 7 +++++++ requirements.txt | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/jupyter-widgets.qmd b/docs/jupyter-widgets.qmd index c586dd7d..b6f0845d 100644 --- a/docs/jupyter-widgets.qmd +++ b/docs/jupyter-widgets.qmd @@ -56,6 +56,7 @@ 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", @@ -76,6 +77,12 @@ altair anywidget palmerpenguins jsonschema +## file: soft_dependencies.py +# Temporary workaround to inform shinylive of soft dependencies +import anywidget +import jsonschema +import mypy_extensions +import toolz ``` ##### Bokeh diff --git a/docs/quick-start.qmd b/docs/quick-start.qmd index 3a225943..ad5464ed 100644 --- a/docs/quick-start.qmd +++ b/docs/quick-start.qmd @@ -141,6 +141,7 @@ 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", @@ -161,6 +162,12 @@ altair anywidget palmerpenguins jsonschema +## file: soft_dependencies.py +# Temporary workaround to inform shinylive of soft dependencies +import anywidget +import jsonschema +import mypy_extensions +import toolz ``` ##### Bokeh diff --git a/requirements.txt b/requirements.txt index e427d1b0..cd5c9792 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ jupyter jupyter_client < 8.0.0 tabulate -shinylive==0.2.1 +shinylive==0.2.0 matplotlib==3.8.1 shiny seaborn==0.13.0