Skip to content

Commit 3a4421c

Browse files
author
Adi
committed
Change names, Add bold notes on token and twitter file
1 parent 7661c74 commit 3a4421c

File tree

6 files changed

+25
-39
lines changed

6 files changed

+25
-39
lines changed
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@
77
"# Genarate Stocks Demo Data\n",
88
"\n",
99
"Run the code below to generate the key/value table, time-series table and stream used in the demo<br>\n",
10-
"> Note, for the notebook to run you need to set the need to set the WorldTradingData token as described below<br>"
10+
"> ### In order to run the notebook you need to obtain a free token from WorldTradingData \n",
11+
"\n",
12+
"### Require obtaining a (free) API token from [World Trading Data](https://www.worldtradingdata.com) and setting the environment variable below "
13+
]
14+
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": null,
18+
"metadata": {},
19+
"outputs": [],
20+
"source": [
21+
"%env API_TOKEN = <Insert world trading data token>"
1122
]
1223
},
1324
{
@@ -109,17 +120,7 @@
109120
"cell_type": "markdown",
110121
"metadata": {},
111122
"source": [
112-
"## Fill the time-series table with a week worth or historical data from WorldTradingData API \n",
113-
"Require obtaining a (free) API token from [World Trading Data](https://www.worldtradingdata.com) and setting the environment variable below "
114-
]
115-
},
116-
{
117-
"cell_type": "code",
118-
"execution_count": null,
119-
"metadata": {},
120-
"outputs": [],
121-
"source": [
122-
"%env API_TOKEN = <Insert world trading data token>"
123+
"## Fill the time-series table with a week worth or historical data from WorldTradingData API "
123124
]
124125
},
125126
{
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"metadata": {},
1313
"source": [
1414
"## Initialization \n",
15-
"install packages and set environment variables.<br>\n",
16-
"need to fill the following environment variables with real credentials.<br>\n",
17-
"create a file called `tweet_env.txt` in the same path and write the credentials vars in the following form:\n",
15+
"Install packages and set environment variables.<br>\n",
16+
"Need to fill the following environment variables with real credentials.<br>\n",
17+
"### Create a file called `tweet_env.txt` in the same path and write the credentials vars in the following form:\n",
1818
"\n",
1919
"```\n",
2020
" # Twitter credentials\n",
Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,23 @@
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"Follow the steps in this this tutorial to define a custom \"iguazio\" Grafana data source and create a \"stocks\" Grafana dashboard that uses this data source to query tables in the Iguazio Data Science Platform (**\"the platform\"**)."
14+
"Follow the steps in this this tutorial to create a \"stocks\" Grafana dashboard using Iguazio data source <br>\n",
15+
"Note that you need to create a Grafana service before running the notebook <br>\n",
16+
"Creating a grafana service can be done from the \"services\" screen in the Platform"
1517
]
1618
},
1719
{
1820
"cell_type": "code",
19-
"execution_count": 1,
21+
"execution_count": null,
2022
"metadata": {},
21-
"outputs": [
22-
{
23-
"name": "stdout",
24-
"output_type": "stream",
25-
"text": [
26-
"Collecting git+https://github.com/v3io/grafwiz.git\n",
27-
" Cloning https://github.com/v3io/grafwiz.git to /tmp/pip-req-build-fwkh1tj4\n",
28-
"Requirement already satisfied (use --upgrade to upgrade): grafwiz==0.1.0 from git+https://github.com/v3io/grafwiz.git in /User/.pythonlibs/lib/python3.6/site-packages\n",
29-
"Requirement already satisfied: grafanalib in /User/.pythonlibs/lib/python3.6/site-packages (from grafwiz==0.1.0) (0.5.3)\n",
30-
"Requirement already satisfied: attrs in /conda/lib/python3.6/site-packages (from grafanalib->grafwiz==0.1.0) (19.1.0)\n",
31-
"Building wheels for collected packages: grafwiz\n",
32-
" Running setup.py bdist_wheel for grafwiz ... \u001b[?25ldone\n",
33-
"\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-0jnpcojn/wheels/8f/07/f3/185d8b497806aae5db86574055449669bd6c6658be2a5f9ec4\n",
34-
"Successfully built grafwiz\n"
35-
]
36-
}
37-
],
23+
"outputs": [],
3824
"source": [
3925
"!pip install git+https://github.com/v3io/grafwiz.git"
4026
]
4127
},
4228
{
4329
"cell_type": "code",
44-
"execution_count": 2,
30+
"execution_count": 1,
4531
"metadata": {},
4632
"outputs": [],
4733
"source": [
@@ -51,20 +37,19 @@
5137
},
5238
{
5339
"cell_type": "code",
54-
"execution_count": 3,
40+
"execution_count": null,
5541
"metadata": {},
5642
"outputs": [],
5743
"source": [
5844
"# Grafana internal cluster address (will be http://grafana)\n",
5945
"grafana_url = 'http://grafana'\n",
6046
"# External URL of the demo's stream-viewer Nuclio serverless function\n",
61-
"# Replace the string after the app. with the dashboard URL (e.g. stream-view.iguazio.app.product4.iguazio-cd2.com)\n",
62-
"streamview_url = 'https://stream-view.iguazio.app.<Dashboard URL string>/'"
47+
"streamview_url = 'https://stream-view.iguazio.app.vjszzjiaingr.iguazio-cd0.com/'"
6348
]
6449
},
6550
{
6651
"cell_type": "code",
67-
"execution_count": 4,
52+
"execution_count": 3,
6853
"metadata": {},
6954
"outputs": [
7055
{

0 commit comments

Comments
 (0)