If you have the HomeAssistant Jupyter Add-on/App (packaged by Franck Nijhof) installed, you can use the Voila dashboard feature of Jupyter to display notebooks as dashboards inside HomeAssistant. You can pack your notebooks with all kinds of explanatory markdown, but have Voila only display your final widgets.
Here are a couple of examples: GitHub - stewart-yeoman/home-assistant-voila-dashboards: Jupyter notebooks with ipywidgets that can be used in HomeAssistant with Voila · GitHub

