github posit-dev/py-shiny v0.7.0
Shiny 0.7.0

latest releases: v1.1.0, v1.0.0, v0.10.2...
8 months ago

Breaking Changes

  • Closed #938: page_sidebar() and page_navbar() now use fillable=False by default. (#990)

New features

  • Added shiny.ui.input_task_button() for creating buttons that launch longer-running tasks than shiny.ui.input_action_button() was designed for. Task buttons give visual feedback that the task is running, and cannot be clicked again until the task is complete. (#907)

  • Added @extended_task decorator for creating long-running tasks that can be cancelled. (#907)

  • Added @render.download as a replacement for @session.download, which is now deprecated. (#977)

  • Added ui.output_code(), which is currently an alias for ui.output_text_verbatim(). (#997)

  • Added @render.code, which is an alias for @render.text, but in Express mode, it displays the result using ui.output_code(). (#997)

  • Added App.on_shutdown method for registering a callback to be called when the app is shutting down. (#907)

  • You can now pass options to ui.input_selectize see the selectize.js docs for available options. (#914, #158)

  • ui.input_selectize gains the remove_button argument which allows you to control the visibility of the remove button.

Bug fixes

  • CLI command shiny create... (#965)

    • has added a -d/--dir flag for saving to a specific output directory
    • will raise an error if if will overwrite existing files
    • prompt users to install requirements.txt
  • Fixed js-react template build error. (#965)

  • Fixed #1007: Plot interaction with plotnine provided incorrect values. (#999)

Developer features

  • Output renderers should now be created with the shiny.render.renderer.Renderer class. This class should contain either a .transform(self, value) method (common) or a .render(self) (rare). These two methods should return something can be converted to JSON. In addition, .default_ui(self, id) should be implemented by returning htmltools.Tag-like content for use within Shiny Express. To make your own output renderer, please inherit from the Renderer[IT] class where IT is the type (excluding None) required to be returned from the App author. (#964)
    • Legacy renderers that will be removed in the near future:
      • shiny.render.RenderFunction
      • shiny.render.RenderFunctionAsync
      • shiny.render.transformer.OutputRenderer
      • shiny.render.transformer.OutputRendererSync
      • shiny.render.transformer.OutputRendererAsync

Don't miss a new py-shiny release

NewReleases is sending notifications on new releases.