Skip to content

Conversation

@jcheng5
Copy link
Collaborator

@jcheng5 jcheng5 commented Oct 4, 2023

  • TODO: Fix @output_transformers so that @output_transformers works again; currently @output_transformers() must be used.

This will make it easier to avoid a circular dependency
in a commit I'm working on. Also just good practice to
try to import from the most specific module possible.
Note that this breaks @output_transformer decorator
usage that doesn't include (). I tried to make it work
but couldn't figure out the type annotations.
@jcheng5 jcheng5 requested a review from wch October 4, 2023 16:19
@jcheng5 jcheng5 marked this pull request as ready for review October 4, 2023 19:16
Copy link
Collaborator

@wch wch left a comment

Choose a reason for hiding this comment

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

PR looks good overall -- I just have a few small questions and comments.

@render.xxx decorators now self-register with the currently active
session's (or module's) output. You can still use an explicit
output decorator if you want to set other options, although at
this time doing so doesn't prevent the initial implicit output
registration from happening.
@jcheng5 jcheng5 requested a review from wch October 11, 2023 00:12
Co-authored-by: Winston Chang <[email protected]>
@wch wch merged commit e2e1971 into main Oct 11, 2023
@wch wch deleted the self-outputting-renderers branch October 11, 2023 20:01
schloerke added a commit that referenced this pull request Oct 13, 2023
* main:
  Remove leading newline
  Stop testing on Python 3.12
  Update changelog
  Check that file is autogenerated before overwriting
  Run tests on Python 3.12
  Add support for Quarto integration (#746)
  Revert inadvertent whitespace change
  Update shinylive version for docs (#759)
  Self outputting renderers (#747)
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.

3 participants