Giter Club home page Giter Club logo

dashboard's Introduction

Aircraft Efficiency Dashboard

Setup Python Environment

Set up a Python virtual environment that includes all packages required to build the documentation. A Conda environment file is provided for convenient setup. The file is located at ./environment.yml. Install the environment dashboard by running from the repository root directory:

conda env create -f 'environment.yml'

and activate the environment:

conda activate dashboard

You are now ready to render the dashboard and thereafter convert it to a WASM Web Worker...

Build and Deploy

To convert the Panel application (.ipynb or py) to a standalone HTML file, run:

Note

Replace <PANEL_APP> and <REQUIREMENTS_FILE> with the file paths to the Panel application and the requirements file.

panel convert <PANEL_APP> --to pyodide-worker --index --requirements <REQUIREMENTS_FILE> --out pyodide

The GitHub Actions workflow deploy.yml will deploy the ./pyodide/index.html) to GitHub Pages on every push to the main branch.

dashboard's People

Contributors

michaelweinold avatar rohrerph avatar

Watchers

 avatar

dashboard's Issues

Add new Figures (from "Aviation II" lecture)

Add these two figures:

to a GH pages site.

The relevant instructions for converting the .py files to WASM can be found at:

I already added three "test file" that show how to make any matplotlib figure interactive, using the bokeh package: sustainableaviation/dashboard/dev/tests. This includes the use of the servable() directive etc.

I would like the data to be "interactive" in the following sense: Mouse-hover to see the point metadata (eg. x, y, label, etc.). Use this application from the panel homepage for inspiration:

Screenshot 2023-12-20 at 10 19 10

For further information on how to get from matplotlib to WASM, compare this issue:

Determine best File-Loading Approach

In the current draft, .xlsx files are still read from GitHub like so:

ida = 'https://raw.githubusercontent.com/sustainableaviation/Aircraft-Performance/main/dashboard/data/Dashboard.xlsx'
ida = pd.read_excel(ida)

At the moment, 11 Excel sheets are read in this way. This is probably not the best way to feed data into the dashboard. A few ideas on how to improve the input performance:

  • Read Excel files during local build and package the resulting pd.dataframes into a pickle file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.