Skip to content

Commit

Permalink
Test whether we can remove altair soft_dependencies hack (#188)
Browse files Browse the repository at this point in the history
* Test whether we can remove altair soft_dependencies hack

* Use py-shinylive 0.5.1

Co-authored-by: Carson Sievert <[email protected]>

---------

Co-authored-by: Winston Chang <[email protected]>
  • Loading branch information
cpsievert and wch authored Jul 26, 2024
1 parent 4eaa7aa commit cef6cd9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
20 changes: 0 additions & 20 deletions docs/jupyter-widgets.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
```


Expand Down
10 changes: 0 additions & 10 deletions docs/overview.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit cef6cd9

Please sign in to comment.