dash-renderer

raw JSON →
1.9.1 verified Fri May 01 auth: no python maintenance

Front-end component renderer for Dash, part of the Plotly Dash ecosystem. Version 1.9.1 is the latest; it is bundled with Dash and released alongside Dash core library. The package is in maintenance mode; new features are added to Dash itself.

pip install dash-renderer
error ModuleNotFoundError: No module named 'dash_renderer'
cause Trying to import dash_renderer before installing dash or dash-renderer.
fix
Install dash (which includes dash-renderer) with 'pip install dash'.
error ImportError: cannot import name 'renderer' from 'dash_renderer'
cause Wrong import path; dash_renderer is a module, not a package with a renderer class.
fix
Do not import anything from dash_renderer; it's used internally by Dash.
error dash-renderer has no attribute 'frontend'
cause Attempting to access the renderer directly.
fix
Access the renderer through the Dash app object if needed (e.g., app.renderer).
deprecated dash-renderer is deprecated in favor of Dash's built-in renderer. Version 1.9.1 is the final release.
fix Do not install dash-renderer separately; use Dash (>=2.0.0) which includes its own renderer.
gotcha Importing dash_renderer directly is unnecessary and may cause confusion. It's automatically loaded when you import dash.
fix Simply import dash; do not add any dash-renderer import.
breaking dash-renderer v1.9.1 is not compatible with Python 2.7 or older versions of React.
fix Use Python 3.5+ and ensure you are using a compatible version of Dash.

Dash apps automatically use dash-renderer for front-end rendering; no direct import required.

import dash
import dash_core_components as dcc
import dash_html_components as html

app = dash.Dash(__name__)

app.layout = html.Div([
    dcc.Input(id='input', type='text'),
    html.Div(id='output')
])

if __name__ == '__main__':
    app.run(debug=True)