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

Dash: the 'plotly' result_result_type #6

Closed
Nanguage opened this issue Sep 17, 2022 · 0 comments
Closed

Dash: the 'plotly' result_result_type #6

Nanguage opened this issue Sep 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Nanguage
Copy link
Owner

Nanguage commented Sep 17, 2022

Allow render the result with ploty. The wraped function return a plotly figure object:

from oneface import one, Arg
import plotly.express as px
import numpy as np

@one
def draw_random_points(n: Arg[int, [1, 10000]] = 100):
    x, y = np.random.random(n), np.random.random(n)
    fig = px.scatter(x=x, y=y)
    return fig

draw_random_points.dash_app(
    result_show_type='plotly',
    debug=True)
@Nanguage Nanguage changed the title Dash the 'figure' result_result_type Dash the 'plotly' result_result_type Sep 17, 2022
@Nanguage Nanguage changed the title Dash the 'plotly' result_result_type Dash: the 'plotly' result_result_type Sep 17, 2022
@Nanguage Nanguage added the enhancement New feature or request label Sep 17, 2022
Nanguage added a commit that referenced this issue Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant