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_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 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_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 theremove_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
- has added a
-
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 returninghtmltools.Tag
-like content for use within Shiny Express. To make your own output renderer, please inherit from theRenderer[IT]
class whereIT
is the type (excludingNone
) 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
- Legacy renderers that will be removed in the near future: