Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMP0034 Week 6 Coding activities: HTML, CSS, Flask Jinja and Dash layout

NB: The apps are now in a directory called 'src'. Remember to do the pip install -e . step below.

Set-up

  1. Fork the repository https://github.com/nicholsons/comp0034-wk6

  2. Clone the forked repository to create a project in your IDE

  3. Create and activate a virtual environment in the project folder e.g.

    • MacOS: python3 -m venv .venv then source .venv/bin/activate
    • Windows: py -m venv .venv then .venv\Scripts\activate
  4. Check pip is the latest versions: pip install --upgrade pip

  5. Install the requirements. You may wish to edit requirements.txt first to remove the packages for Flask or Dash if you only want to complete the activities for one type of app.

    • e.g. pip install -r requirements.txt
  6. Install the paralympics code e.g. pip install -e .

Activity instructions

The activities introduce HTML and CSS in the specific contexts of Dash and Flask. That is, you will learn just enough HTML and CSS to get you started with the application frameworks.

There are two versions of the activities. You can complete both, or just the version for the framework you intend to use for coursework 2. Dash is for dashboard apps (apps that mostly contain charts); Flask is for any other app e.g. pages that include a feature that uses a machine learning model or pages that work with the data in some other way.

  1. Dash activities
  2. Flask activities

If you want to learn a little HTML, CSS and JavaScript independently of the application framework then the activities folder includes optional activities: html intro, css intro, responsive design intro, and js intro.

About

COMP0034 2023/24: Week 6 coding activities

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages