Morph allows you to create data apps using visualization libraries within the Python ecosystem. In this tutorial, we will introduce how to embed a rich dashboard created with PyGWalker into a data app.Documentation Index
Fetch the complete documentation index at: https://docs.morph-data.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Please install PyGWalker in advance by the following command.Output
PyGWalker is a library that creates a dashboard for interactive data analysis from data on a DataFrame. You can easily introduce a BI app by placing it on the data app created by Morph and sharing it with your team.
Tutorial
In this tutorial, we will implement the app in the following steps:- Create a Python function that returns HTML using PyGWalker.
- Pass the created Python function to the
<Embed />component in the MDX file to display the dashboard.
<Embed /> displays the HTML when a Python function that returns HTML is specified as the target of loadData.
- 1. Python
- 2. MDX(pages)
Create sample data as a DataFrame, convert the data to a dashboard using PyGWalker, and return it as HTML.