Releases: plotly/dash
Releases · plotly/dash
Dash v1.21.0
Dash and Dash Renderer
Added
- #1675 Add new
Dash
constructor argumentextra_hot_reload_paths
. This allows you to re-initialize the Python code of the app when non-Python files change, if you know that these files impact the app.
Changed
- #1675 Remove the constraint that
requests_pathname_prefix
ends withroutes_pathname_prefix
. When you are serving your app behind a reverse proxy that rewrites URLs that constraint needs to be violated. - #1611 and #1685 Package dash-renderer artifacts and dependencies with Dash, and source renderer resources from within Dash.
- #1567 Julia component generator puts components into
src/jl
- fixes an issue on case-insensitive filesystems when the component name and module name match (modulo case) and no prefix is used. Also reduces JS/Julia clutter in the overloadedsrc
directory.
Fixed
- #1664 Fix #1649, makes the devtools readable with a dark theme.
- #1640 Fix #1475, missing
timing_information
after certain modifications to Flask behavior
Dash Core Components
Fixed
-
This applies the fix from #878 to the RangeSlider.
It not only fixes the bug where the tooltips were visible when slider was not, but it also reduces the lag in the
tooltip when the slider handles are moved.
Updated
- #939 Upgrade Plotly.js to v2.2.1. Note that this is a major version upgrade to Plotly.js, however we are not treating this as a breaking change for DCC as the majority of breaking changes in Plotly.js do not affect the Dash API. The one exception is that several trace types that have long been deprecated are removed entirely.
- Major release 2.0.0:
- Stop exporting d3 as
Plotly.d3
, and remove many other deep pieces of the public API. This does not affect thedcc.Graph
component, but if you make use ofPlotly
from the global scope in some other way you may be affected. - Drop the deprecated trace types
contourgl
andarea
, as well as legacy pre-scatterpolar
polar attributesbar.r
,bar.t
,scatter.r
,scatter.t
,layout.radialaxis
,layout.angularaxis
. Usescatterpolar
,barpolar
, andpolar
subplots instead. heatmapgl
andpointcloud
trace types, and thetransform
attribute are deprecated, and will be removed in a future release.- Increase CSP safety by removing function constructors. 3D plots still use function constructors, but if you place one of the non-3D bundles (including the new
strict
bundle) in yourassets
folder you will have no function constructors. - Remove "Aa" text in legends.
- Default
hovermode
to "closest". - Default
textposition
to "auto" inbar
traces. If you previously used thebar.text
attribute for hover only, you will need to explicitly settextposition="none"
. - Add
bar.marker.pattern
,image.zsmooth
, and various other features and bugfixes.
- Stop exporting d3 as
- Feature release 2.1.0:
- New
icicle
trace type. - New
legendrank
trace attribute. - Several other additions and bug fixes.
- New
- Feature release 2.2.0:
- Legend group titles
- Half-year directive (
%h
) for date formatting - Several other bug fixes and performance improvements
- Patch release 2.2.1 containing a security fix.
- Major release 2.0.0:
Added
- #932 Adds a new copy to clipboard component.
- #948] Adds
disabled_days
prop toDatePickerRange
andDatePickerSingle
components. With this prop you can specify days that should be made unselectable in the date picker, in addition to those that fall outside of the range specified bymin_date_allowed
andmax_date_allowed
.
Changed
- #972 Updated R package vignettes and
dash-info.yaml
to regenerate examples without attaching now-deprecated core component packages (dashHtmlComponents
,dashCoreComponents
, ordashTable
).
Dash HTML Components
Changed
- #194 Updated dependencies and build process
- #190 Updated R package vignettes and
dash-info.yaml
to regenerate examples without attaching now-deprecated core component packages (dashHtmlComponents
,dashCoreComponents
, ordashTable
).
Dash Table
Fixed
Added
-
- Added
html
option tomarkdown_options
prop. This enables the use of html tags in markdown text.
- Added
-
- Case insensitive filtering
- New props:
filter_options
- to control case of all filters,columns.filter_options
- to control filter case for each column - New operators:
i=
,ieq
,i>=
,ige
,i>
,igt
,i<=
,ile
,i<
,ilt
,i!=
,ine
,icontains
- for case-insensitive filtering,s=
,seq
,s>=
,sge
,s>
,sgt
,s<=
,sle
,s<
,slt
,s!=
,sne
,scontains
- to force case-sensitive filtering on case-insensitive columns
Changed
- #918 Updated all dependencies. In particular the
highlight.js
upgrade changes code highlighting in markdown: we have long used their "github" style, this has been updated to more closely match current github styles. - #901 Updated R package
dash-info.yaml
to regenerate example without attaching now-deprecated core component packages (dashHtmlComponents
,dashCoreComponents
, ordashTable
).
Dash v1.20.0
Dash and Dash Renderer
Changed
- #1531 Update the format of the docstrings to make them easier to read in the reference pages of Dash Docs and in the console. This also addresses #1205
- #1553 Increase the z-index of the Dash error menu from 1001 to 1100 in order to make sure it appears above Bootstrap components.
Fixed
- #1546 Validate callback request
outputs
vsoutput
to avoid a perceived security issue.
Dash Core Components
Added
- #863 Adds a new
Download
component. Along with this several utility functions are added to help construct the appropriate data format:dcc.send_file
- send a file from diskdcc.send_data_frame
- send aDataFrame
, using one of its writer methodsdcc.send_bytes
- send a bytestring or the result of a bytestring writerdcc.send_string
- send a string or the result of a string writer
Changed
Fixed
- #930 Fixed a bug #867 with
DatePickerRange
that would sometimes shift the allowed dates by one day. - #934 Fixed a bug in
EnhancedTab
component that ignoreddisabled_className
property
Dash HTML Components
Fixed
-
#179 - Fixes #77 Added
allow
andreferrerPolicy
properties tohtml.Iframe
-
#178 - Fix #161
data
property, and fix #129 obsolete, deprecated, and discouraged elements. No elements were removed, but comments were added to the documentation about these elements detailing their limitations.Dash Table
Changed
Dash v1.19.0
Dash and Dash Renderer
Added
- #1508 Fix #1403: Adds an x button
to close the error messages box. - #1525 Adds support for callbacks which have overlapping inputs and outputs. Combined with
dash.callback_context
this addresses many use cases which require circular callbacks.
Changed
- #1503 Fix #1466: loosen
dash[testing]
requirements for easier integration in external projects. This PR also bumps manydash[dev]
requirements.
Fixed
- #1530 Dedent error messages more carefully.
- #1527🐛
get_asset_url
now pulls from an external source ifassets_external_path
is set.- updated
_add_assets_resource
to build asset urls the same way asget_asset_url
. - updated doc string for
assets_external_path
Dash argument to be more clear that it will allways be joined with theassets_url_path
argument when determining the url to an external asset.
- updated
- #1493 Fix #1143, a bug where having a file with one of several common names (test.py, code.py, org.py, etc) that imports a dash component package would make
import dash
fail with a cryptic error message asking whether you have a file named "dash.py"
Dash Core Components
Fixed
- #905 Make sure the
figure
prop ofdcc.Graph
receives updates from user interactions in the graph, by using the samelayout
object as provided in the prop rather than cloning it. Fixes #879. - #903 Part of fixing dash import bug #1143
Updated
Added
- #888 Adds a
drag_value
prop todcc.Slider
to be able to fire callbacks from dragging and releasing the slider.
Dash HTML Components
Fixed
Dash Table
Fixed
Dash v1.18.1
Dash v1.18.0
Dash-Table
Fixed
- #844 Fix a bug where the table is using classes that are styled by Bootstrap
Dash-Core-Components
Updated
- #889 & #893
- Upgraded Plotly.js to 1.58.1
- Patch Release 1.58.1
- Feature release of Plotly.js 1.58.0 which:
- Add
ticklabelposition
attribute to cartesian axes and colorbars #5275 - Add "strict"
autotypenumbers
to axes andlayout
#5240 - Add
itemwidth
to legends #5212 - Add
root.color
attribute tosunburst
andtreemap
traces #5232, #5245 - Enable fast image rendering for all linear axes #5307
- Rework matches and scaleanchor so they work together #5287
- Add
- Upgraded Plotly.js to 1.58.1
Dash v1.17.0
Dash and Dash-Renderer
Changed
- #1442 Update from React 16.13.0 to 16.14.0
Fixed
Changed
- #1448 Provide a hint in the callback error when the user forgot to make
app.callback(...)
a decorator.
Dash-Core-Components
Added
- #871 Add Julia syntax highlighting support for dcc.Markdown
Fixed
- #878
- Fixed #751, a bug that causes
dcc.Slider
anddcc.RangerSlider
tooltips to be visible even if the slider component isn't visible (e.g. overflow),
- Fixed #751, a bug that causes
Updated
- #875
- Upgraded Plotly.js to 1.57.1
- Patch release 1.57.1
- Feature release of Plotly.js 1.57.0 which:
- Feature release of Plotly.js 1.56.0 which:
- Introduce period positioning attributes on date axes in various cartesian traces #5074, #5175
- Add minexponent attribute to improve control over SI prefixes in axis tick labels #5121,
- Add sort attribute to sunburst and treemap traces to disable automatic sort #5164
- Handle rgba colors in colorscale of surface traces #5166
- Patch release 1.55.2
- Upgraded Plotly.js to 1.57.1
Dash-Table
Fixed
- #841
- Fix prop-types regression causing console errors in browser devtools
- Fix syntax highlighting regression for Markdown cells
- #842 Fix a regression introduced with #722 causing the tooltips to be misaligned with respect to their parent cell and incompletely addressed in #817
Added
Dash v1.16.3
Dash and Dash-Renderer
Fixed
- #1426 Fix a regression caused by
flask-compress==1.6.0
causing performance degradation on server requests
Dash v1.16.2
Dash v1.16.1
Dash and Dash-Renderer
Changed
- #1376 Extends the
getTransform
logic in the renderer to handlepersistenceTransforms
for both nested and non-nested persisted props. This was used to to fix dcc#700 in conjunction with dcc#854 by using persistenceTransforms to strip the time part of the datetime so that datepickers can persist when defined in callbacks.
Fixed
- #1408 Fixes a bug where the callback graph layout would reset whenever a callback fired, losing user-initiated layout changes (#1402) or creating a new force layout (#1401)
Dash-Core-Components
Fixed
- #854 Used
persistenceTransforms
to strip the time part of the datetime in the persited props of DatePickerSingle (date) and DatePickerRange (end_date, start_date), fixing dcc#700.
Added
- #850 Add property
prependData
toGraph
to supportPlotly.prependTraces
- refactored the existing
extendTraces
API to be a singlemergeTraces
API that can handle bothprepend
as well asextend
.
- refactored the existing
Updated
Dash v1.16.0
Dash and Dash-Renderer
Added
- #1371 You can now get CSP
script-src
hashes of all added inline scripts by callingapp.csp_hashes()
(both Dash internal inline scripts, and those added withapp.clientside_callback
) .
Changed
- #1385 Closes #1350 and fixes a previously undefined callback behavior when multiple elements are stacked on top of one another and their
n_clicks
props are used as inputs of the same callback. The callback will now trigger once with all the triggeredn_clicks
props changes. - #1179 New and improved callback graph in the debug menu. Now based on Cytoscape for much more interactivity, plus callback profiling including number of calls, fine-grained time information, bytes sent and received, and more. You can even add custom timing information on the server with
callback_context.record_timing(name, seconds)
Fixed
- #1384 Fixed a bug introduced by #1180 breaking use of
prevent_initial_call
as a positional arg in callback definitions
Dash-Core-Components
Updated
- #858
- Upgraded Plotly.js to 1.55.1
- Patch release 1.55.1
- Feature release of Plotly.js 1.55.0 which:
- Introduce "period"
ticklabelmode
on cartesian date axes #4993, #5055, #5060, #5065, #5088, #5089 - Add new formatting options for weeks and quarters #5026
- Add
source
attribute toimage
traces for fast rendering #5075 - Add
zsmooth
attribute for discreteheatmapgl
traces #4953 - Add horizontal and vertical markers for arrow charts #5010
- Add touch support to
rangeslider
#5025
- Introduce "period"