Getting Started =============== Installation ------------ .. code-block:: bash pip install dash-prism Requirements: Python 3.10+, Dash 3.1.1+ | **PyPI:** https://pypi.org/project/dash-prism/ | **Repository:** https://github.com/LudwigAJ/dash-prism Minimal Example --------------- .. code-block:: python import dash_prism from dash import Dash, html app = Dash(__name__) # 1. Register layouts @dash_prism.register_layout(id='home', name='Home') def home_layout(): return html.Div('Hello, Prism!') # 2. Add Prism to app layout app.layout = html.Div([ dash_prism.Prism(id='workspace', style={'height': '100vh'}) ]) # 3. Initialize dash_prism.init('workspace', app) if __name__ == '__main__': app.run(debug=True) The order matters: register layouts -> define app.layout -> call init(). Development Installation ------------------------ The project uses `Poetry `_ for dependency management: .. code-block:: bash git clone https://github.com/LudwigAJ/dash-prism.git cd dash-prism poetry install --with dev,test,docs,demo npm install npm run build Or with `just `_: .. code-block:: bash just install just build