openairclim.gui.sidebar

Create GUI sidebar, which includes: intro text, load/new configuration, config validation and a button to run OpenAirClim.

openairclim.gui.sidebar.build_status_panes()[source]

Return the shared status Markdown panes (“load” and “validate”) normally shown in the sidebar.

Built separately from panel() so other tabs (e.g. the “Config (Expert)” text editor) can report their own load/validate outcomes into the same panes the sidebar’s Load/Validate buttons use, rather than duplicating status UI on every tab.

Returns:

{“load”: pn.pane.Markdown, “validate”: pn.pane.Markdown}.

Return type:

dict

openairclim.gui.sidebar.panel(state, status_panes=None)[source]

Return the sidebar content.

Parameters:
  • state (AppState) – Shared application state.

  • status_panes (dict, optional) – Pre-built “load”/”validate” panes from build_status_panes(), shared with other tabs. A fresh pair is created if not given.

Returns:

Sidebar layout.

Return type:

pn.Column