File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11"""A package for building reactive web applications."""
22
3+ from ._shinyenv import is_pyodide as _is_pyodide
4+
35# User-facing subpackages that should be available on `from shiny import *`
46from . import reactive
57from .render import *
911# Private submodules that have some user-facing functionality
1012from ._app import App
1113from ._decorators import event
12- from ._main import run as run_app
1314from ._validation import req
1415
16+ if _is_pyodide :
17+ # In pyodide, avoid importing _main because it imports packages that aren't
18+ # available.
19+ run_app = None
20+ else :
21+ from ._main import run as run_app
22+
1523# User-facing submodules that should *not* be available on `from shiny import *`
1624from . import modules
1725from . import types
You can’t perform that action at this time.
0 commit comments