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