Skip to content

Update @add_examples() to work with Express, avoid Express docs example errors for now #1073

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

Merged
merged 26 commits into from
Jan 26, 2024

Conversation

gadenbuie
Copy link
Collaborator

@gadenbuie gadenbuie commented Jan 25, 2024

On top of #1053

@gadenbuie gadenbuie mentioned this pull request Jan 26, 2024
55 tasks
@gshotwell gshotwell changed the title Add Express versions of API examples Add @no_express_examples decorators to express functions which don't have examples Jan 26, 2024
@gadenbuie gadenbuie changed the title Add @no_express_examples decorators to express functions which don't have examples Update @add_examples() to work with Express, avoid Express docs example errors for now Jan 26, 2024
Comment on lines +197 to +198
# We can't use .shiny.express._is_express.is_express_app() here because that would
# create a circular import.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import here, avoid circular import

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, this still gave me a circular import error

  File "/Users/garrick/work/posit-dev/py-shiny/shiny/ui/_accordion.py", line 11, in <module>
    from ..session import require_active_session
ImportError: cannot import name 'require_active_session' from partially initialized module 'shiny.session' (most likely due to a circular import) (/Users/garrick/work/posit-dev/py-shiny/shiny/session/__init__.py)

I'm going to leave this alone for now

@gadenbuie gadenbuie marked this pull request as ready for review January 26, 2024 18:58
@gadenbuie gadenbuie merged commit d827837 into split-api-docs Jan 26, 2024
@gadenbuie gadenbuie deleted the add-examples-express-split branch January 26, 2024 19:09
@gadenbuie
Copy link
Collaborator Author

Merged manually into #1053

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.

1 participant