Skip to content

Commit

Permalink
fix: fixed missing requirements for jupyter notebook, added hints in …
Browse files Browse the repository at this point in the history
…readme
  • Loading branch information
siredmar committed May 13, 2022
1 parent 65fb14a commit 77d50e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions data-export/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ kubectl get secrets -o jsonpath='{.data.NATS_ADDRESS}' nats-server-info | base64
Execute `receive-historic-data` application to collect histroic data from data endpoint and store data in local file `data.csv`.
```bash
$ cd data-export/receive-historic-data
$ pip3 install -r requirements.txt
$ python main.py
2022-04-25 16:23:13 root INFO Connecting to NATS server: tls://connect.ngs.global:4222
2022-04-25 16:23:48 root INFO Received all historic data. Proceed with live data.
Expand All @@ -90,3 +91,5 @@ To run Jupyter Notebook open the file `data-export/view-life-data/main.ipynb` e.
Scroll down to the bottom of the file to view the graph.

![Jupyter Output Example](../docs/data-export-jupyter-output.png)

**⚠ NOTE:** If you experience issues with the notebook regarding missing packages please run `pip3 install -r requirements.txt` in the notebook directory.
14 changes: 7 additions & 7 deletions data-export/view-life-data/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -50,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -76,7 +76,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -134,7 +134,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -184,13 +184,13 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7579abb3acfd47948f98728048188ebf",
"model_id": "90dc85455897428ea06c4b02c2586411",
"version_major": 2,
"version_minor": 0
},
Expand Down
2 changes: 2 additions & 0 deletions data-export/view-life-data/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ matplotlib==3.5.1
nats_py==2.1.0
numpy==1.19.2
python-dotenv==0.20.0
ipykernel==6.13.0
ipympl==0.9.1

0 comments on commit 77d50e1

Please sign in to comment.