Skip to content

Commit eecc49f

Browse files
committed
updated README and cleaned up some more
1 parent 402ff2b commit eecc49f

4 files changed

Lines changed: 35 additions & 14 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Materials Data Science and Informatics
3+
Copyright (c) 2025 Materials Data Science and Informatics
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Survey dashboard
1+
# Survey Dashboard
22

33
A dashboard to display survey data in an interactive way.
44

55
## Overview
66

7-
This repository contains a dashboard using Panel and Bokeh, developed to display data from
7+
This repository contains a dashboard using Panel and Bokeh, developed to display data from
88
HMC surveys in an interactive exploratory way. It is designed such that the code for the interactive
99
visualizations might be reused for other projects.
1010
Example of a deployed version can be found [here](https://dashboard.survey.helmholtz-metadaten.de/survey_dashboard)
@@ -16,32 +16,53 @@ Some impressions:
1616

1717
## Installation
1818

19-
After downloading the git repository you can install the software either with pip or poetry.
20-
We recommend setting it up in a separate python virtual environment.
19+
### Prerequisites
20+
- Python 3.12 or higher
21+
- Poetry (recommended) or pip
22+
23+
### Using Poetry (Recommended)
24+
25+
After downloading the git repository, install the dependencies using Poetry:
2126

2227
```shell
23-
pip install survey_dashboard
28+
poetry install
2429
```
25-
or
30+
31+
### Using pip
32+
33+
Alternatively, you can install directly from the repository:
2634

2735
```shell
28-
poetry install .
36+
pip install .
2937
```
3038

3139
## Usage
3240

41+
### Development Mode
42+
43+
For development, you can run the app directly using Panel serve:
3344

34-
After installation you can start the app, i.e the panel server/bokeh server.
3545
```shell
36-
panel serve --port 50006 survey_dashboard/
46+
# Using Poetry
47+
poetry run survey-dashboard
48+
49+
# Using Python directly
50+
panel serve app.py --port 5006 --show --autoreload
3751
```
38-
If you have given the dashboard a specific layout like the layout specific to HMC, which is on the hmc_specific branch, you might have to link to to a specific template.
39-
```shell
40-
panel serve --port 5006 survey_dashboard/ --static-dirs en_files=./survey_dashboard/hmc_layout/static/en_files
4152

53+
The `--autoreload` flag enables automatic reloading when you make changes to the code, which is useful during development.
54+
55+
### Manual Panel Serve
56+
57+
If you need more control over the server configuration:
58+
59+
```shell
60+
panel serve app.py --port 5006 --static-dirs en_files=./survey_dashboard/hmc_layout/static/en_files --show
4261
```
4362

44-
* Navigate to `http://localhost:5006/` in your browser.
63+
### Access the Dashboard
64+
65+
* Navigate to `http://localhost:5006/` in your browser after starting the server.
4566

4667
## Deployment
4768

0 commit comments

Comments
 (0)