Subgrounds Workshop
Last updated
Last updated
This session is focused on Subgrounds' core features and serve as a guide on how to start and complete data analytics using Subgrounds.
Participants can expect the following topics to be covered:
Intro: Motivations for Subgrounds and some GraphQL basics
FieldPaths: What are they and how do we combine them to create subgrounds requests?
subgrounds.query
method: the simplest way to get data
subgrounds.query_df
method: get data in a flattened representation, returned in a pandas DataFrame
subgrounds.query_timeseries
method: query and return regularized timeseries data
Note: this is planned for the v0.1.0
release and is not yet publicly available.
Creating and using SyntheticFields
Querying non-Subgraph APIs with Subgrounds
This session introduces building full featured analytics dashboards using Subgrounds built-in data visualization library called Dash. During this part, we will take a "live build" approach and create a simple klimaDAO analytics dashboard in this session. The dashboard will explore KlimaDAOs treasury and general protocol metrics.
Topics:
Introduction to dash and data visualizations with dash
The Code: Preparing Subgrounds for your data exploration
The Data: Interfacing Subgrounds with Dash
App Layout section: Building and assembling your dashboard components and layout
Callback: Connecting visualizations to Subgrounds queries
Running your app locally
Deploying your app to Heroku intro
Resources:
The final session is a continuation of part two, except that rather than deploying locally to your machine, we will guide you on deploying to the cloud (Heroku), generating your unique URL, and sharing your dashboard as an app.
Topics
Introduction to Heroku
Setting up Heroku account
Installing Heroku CLI
Creating App project folder on your IDE
Installing necessary App project libraries
Create necessary files for Heroku server
Deploy App to Heroku
Resources: