dash-html-components
Advanced tools
Changelog
[2.0.0] - 2021-08-03
@app.long_callback
decorator to support callback functions that take a long time to run. See the PR and documentation for more information.orjson
package is installed.request_refresh_jwt
hook and retry requests that used expired JWT tokens.dash
, dash-core-components
, dash-html-components
, and dash-table
into a singular monorepo and move component packages into dash
. This change makes the component modules available for import within the dash
namespace, and simplifies the import pattern for a Dash app. From a development standpoint, all future changes to component modules will be made within the components
directory, and relevant packages updated with the dash-update-components
CLI command.compress
argument to the dash.Dash
constructor to False
. This change reduces CPU usage, and was made in recognition of the fact that many deployment platforms (e.g. Dash Enterprise) already apply their own compression. If deploying to an environment that does not already provide compression, the Dash 1 behavior may be restored by adding compress=True
to the dash.Dash
constructor.npm run build
script to simplify build process involving dash-renderer
and subcomponent libraries within dash
.dcc.Slider
and dcc.RangeSlider
where steps were not being set to marks if None was passed as the prop argument. Added a check to set the min and max based on the range of marks if they are not explicitly defined (for more info, see #1843 and #1851).#1729 Include F#, C#, and MATLAB in markdown code highlighting, for the upcoming .NET and MATLAB flavors of dash.
#1735 Upgrade Plotly.js to v2.4.2. This includes:
d3-format
upgrade.geo
projections.scattergl
, splom
and parcoords
traces.legend.groupclick
bbox
of hover items in event data, to support custom dash-driven hover effects#1735 New dcc.Tooltip
component. This is particularly useful for rich hover information on dcc.Graph
charts, using the bbox
information included in the event data in plotly.js v2.4.0
html
elements - <command>
, <element>
, <isindex>
, <listing>
, <multicol>
, <nextid>
. These are obsolete and had been previously removed from the reference table.Changelog
[1.0.0] - 2019-06-20
💥 #761 Several breaking changes to the dash.Dash
API:
static_folder
and components_cache_max_age
supress_callback_exceptions
fallbackresources.config.infer_from_layout
app.config
: ALL constructor args are now stored in config
, with three exceptions: server
, index_string
, and plugins
. None of these are stored in any other instance attributes anymore.hot_reload_interval
from msec to seconds, for consistency with hot_reload_watch_interval
enable_dev_tools
, debug=True
by default. It's still False
by default from run_server
.✨ #744 Introducing Dash Testing (dash.testing
) - read the full tutorial at https://dash.plotly.com/testing.
#753 Component
no longer inherits MutableMapping
, so values
, keys
, and more are no longer methods. Fixes an issue reported in dcc#440 where components with certain prop names defined but not provided would cause a failure to render. During component generation we now disallow all props with leading underscores or matching a few remaining reserved words: UNDEFINED
, REQUIRED
, to_plotly_json
, available_properties
, and available_wildcard_properties
.
#739 Allow the Flask app to be provided to Dash after object initialization. This allows users to define Dash layouts etc when using the app factory pattern, or any other pattern that inhibits access to the app object. This broadly complies with the flask extension API, allowing Dash to be considered as a Flask extension where it needs to be.
#774 Allow the Flask app to set the Dash app name if the name is not provided by users.
#722 Assets are served locally by default. Both JS scripts and CSS files are affected. This improves robustness and flexibility in numerous situations, but in certain cases initial loading could be slowed. To restore the previous CDN serving, set app.scripts.config.serve_locally = False
(and similarly with app.css
, but this is generally less important).
#724, renderer#175 Undo/redo toolbar is removed by default, you can enable it with app=Dash(show_undo_redo=true)
. The CSS hack ._dash-undo-redo:{display:none;}
is no longer needed
💥 #709 Merge the dash-renderer
project into the main dash repo to simplify feature dev workflow. We will keep the deprecated one for archive purpose.