Shiny 0.7.0
Breaking Changes
New features
-
Added
shiny.ui.input_task_button()for creating buttons that launch longer-running tasks thanshiny.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_taskdecorator for creating long-running tasks that can be cancelled. (#907) -
Added
@render.downloadas a replacement for@session.download, which is now deprecated. (#977) -
Added
ui.output_code(), which is currently an alias forui.output_text_verbatim(). (#997) -
Added
@render.code, which is an alias for@render.text, but in Express mode, it displays the result usingui.output_code(). (#997) -
Added
App.on_shutdownmethod for registering a callback to be called when the app is shutting down. (#907) -
You can now pass options to
ui.input_selectizesee the selectize.js docs for available options. (#914, #158) -
ui.input_selectizegains theremove_buttonargument which allows you to control the visibility of the remove button.
Bug fixes
-
CLI command
shiny create... (#965)- has added a
-d/--dirflag for saving to a specific output directory - will raise an error if if will overwrite existing files
- prompt users to install
requirements.txt
- has added a
-
Fixed
js-reacttemplate 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.Rendererclass. 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 returninghtmltools.Tag-like content for use within Shiny Express. To make your own output renderer, please inherit from theRenderer[IT]class whereITis the type (excludingNone) required to be returned from the App author. (#964)- Legacy renderers that will be removed in the near future:
shiny.render.RenderFunctionshiny.render.RenderFunctionAsyncshiny.render.transformer.OutputRenderershiny.render.transformer.OutputRendererSyncshiny.render.transformer.OutputRendererAsync
- Legacy renderers that will be removed in the near future: