Skip to content

Conversation

@wch
Copy link
Collaborator

@wch wch commented Feb 2, 2024

This is a possible solution for #1079.

Usage:

## app.py ##
from shiny.express import app_globals, render

with app_globals():
    from shared import x

@render.text
def txt():
    return f"The value of shared.x() is {x()}"


## shared.py ##
from shiny import reactive

@reactive.poll(check_fn, 1)
def x():
    ...

def check_fn():
    ...

@wch
Copy link
Collaborator Author

wch commented Mar 13, 2024

Closing in favor of #1172.

@wch wch closed this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants