{"id":45033,"library":"gov-uk-dashboards","title":"GOV.UK Dashboards","description":"Provides access to functionality common to creating a data dashboard for GOV.UK. Version 32.2.0, released as part of the gov-uk-dashboards project maintained by the UK Government Digital Service.","status":"active","version":"32.2.0","language":"python","source_language":"en","source_url":"https://github.com/alphagov/gov-uk-dashboards","tags":["gov.uk","dashboards","data-visualization","flask","dash"],"install":[{"cmd":"pip install gov-uk-dashboards","lang":"bash","label":"Latest"}],"dependencies":[],"imports":[{"wrong":"from gov_uk_dashboards import dashboard","symbol":"dashboard","correct":"from gov_uk_dashboards import dashboard"}],"quickstart":{"code":"from gov_uk_dashboards import dashboard\nfrom gov_uk_dashboards.dash_app import setup_dash\n\napp, server = setup_dash(__name__)\ndashboard.add_section(app, 'Hello GOV.UK')\n\nif __name__ == '__main__':\n    app.run(debug=True)\n","lang":"python","description":"Minimal example creating a dashboard with one section. Assumes Flask backend."},"warnings":[{"fix":"Update imports to reference the subpackage explicitly.","message":"Version 30+ changed the import path for dash setup: previously `from gov_uk_dashboards import dash_app` no longer works. Use `from gov_uk_dashboards.dash_app import setup_dash`.","severity":"breaking","affected_versions":">=30.0.0"},{"fix":"Use a virtual environment and check requirements.txt or setup.py for pinned versions.","message":"The library is tightly coupled to a specific version of Dash and Plotly. Installing alongside other versions may cause dependency conflicts.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace calls to `add_chart()` with the recommended section-based methods.","message":"The `dashboard.add_chart()` function is deprecated in favor of `dashboard.add_chart_section()` or `dashboard.add_graph()`.","severity":"deprecated","affected_versions":">=28.0.0"}],"env_vars":null,"search_vec":"'32.2.0':16 'access':4 'common':7 'creat':9 'dash':40 'dashboard':2,12,25,35 'data':11,37 'data-visu':36 'digit':32 'flask':39 'function':6 'gov':23 'gov-uk-dashboard':22 'gov.uk':1,14,34 'govern':31 'maintain':27 'part':19 'project':26 'provid':3 'releas':17 'servic':33 'uk':24,30 'version':15 'visual':38","created_at":"2026-06-07T12:53:02.839680+00:00","updated_at":"2026-06-07T12:53:02.839680+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'dashboard' from 'gov_uk_dashboards' (/tmp/tmpb2othc5m/venv/lib/python3.12/site-packages/gov_uk_dashboards/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}