Giter VIP home page Giter VIP logo

dashboard_test's Introduction

Github Dashboards Deploy

Objective

Deploy your dashboards easily to github pages through converting your python code to web assembly language. Once converted r=the dashboard is then deployed to git hub and will run real time on any browser that opens that deployment link. This is a new promising technique that will make us not need server based deplyments.

My deployment that is live based on your class activities: Press Me

Enviroment Creation Steps

Please follow instructions in your terminal as follows:

  • conda create -n testing python=3.7
  • conda activate testing
  • conda install -c pyviz hvplot geoviews
  • pip install -r requirements.txt

Deployment Prepration Steps

  1. Create new github repo
  2. Clone your public repo locally and cd into it
  3. Copy everything from Instructor-Extra-Resources/Deploy_Dashboards and paste in your local repo
  4. cd into github folder you just pasted everything inside too
  5. Type in the terminal touch .nojekyll
  6. conda activate testing
  7. cd into src and cd into a project off your choice panel serve script.py --autoreload
  8. panel convert src/project-name/script.py --to pyodide-worker --out docs/project-name for each project you have in src folder
  9. git status --> git add. --> git commit -m "..." --> git push
  10. Go to your github repo where you pushed too and press Settings as shown below:

  1. Press on pages tab as shown below:

  1. Press under branch and select main as shown below

  1. Change /root into /docs as shown below

  1. You are all set!! Refresh the page and wait few minutes and then you can acess your deployments but dont press the link below as it will give 404 error:

  1. Deployment links should look like this:

https://YOUR_GITHUB_USERNAME.github.io/YOUR_GITHUB_REPO/hello-world/script.html

https://YOUR_GITHUB_USERNAME.github.io/YOUR_GITHUB_REPO/compose-plots/script.html

https://YOUR_GITHUB_USERNAME.github.io/YOUR_GITHUB_REPO/portfolio-optimizer/script.html

Offcourse replace YOUR_GITHUB_USERNAME & YOUR_GITHUB_REPO with your username and what you names your repo respectively!

Recording

Please fast forward when necessary: Deploy Demo Recording

Resource Links

Panel Release for the Intiative

Holovis main site

Panel Github Page

Highly Recommended!!: Dashboard Examples with Source Code

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.