Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write-manifest produces the wrong entrypoint for Shiny Express apps #540

Closed
aronatkins opened this issue Jan 30, 2024 · 2 comments
Closed

Comments

@aronatkins
Copy link
Collaborator

The deploy command understands Shiny express applications, but not the write-manifest command.

See: #521

from shiny import reactive
from shiny.express import input, render, ui
from shinywidgets import render_plotly

ui.page_opts(title="Penguins dashboard", fillable=True)

with ui.sidebar():
    ui.input_selectize(
        "var", "Select variable",
        ["bill_length_mm", "bill_depth_mm", "flipper_length_mm", "body_mass_g", "year"]
    )
    ui.input_numeric("bins", "Number of bins", 30)

@reactive.calc
def df():
    from palmerpenguins import load_penguins
    return load_penguins()[input.var()]

with ui.card(full_screen=True):
    @render_plotly
    def hist():
        import plotly.express as px
        p = px.histogram(df(), nbins=input.bins())
        p.layout.update(showlegend=False)
        return p
shiny==0.7.0
shinywidgets==0.3.0

The rsconnect-python 1.22.0 release creates a manifest with an entrypoint of app.

@aronatkins
Copy link
Collaborator Author

The entrypoint in the manifest should be something like: shiny.express.app:app_2e_py

@wch
Copy link
Collaborator

wch commented Mar 22, 2024

This has been fixed by #558.

@wch wch closed this as completed Mar 22, 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

No branches or pull requests

2 participants