|
29 | 29 | "For ease of use, you can set various initialization parameters of the RD Library in the **_refinitiv-data.config.json_** configuration file - as detailed in the next section below.\n", |
30 | 30 | "\n", |
31 | 31 | "Typically you may place this file in the same folder as your Notebook or Python script.\n", |
32 | | - "Alternatively, you can place the file in an folder of your choice and specify the location using the _RD_LIB_CONFIG_PATH_ environment variable. \n", |
| 32 | + "OR, you can place the file in an alternative folder and specify the folder path using the _RD_LIB_CONFIG_PATH_ environment variable. \n", |
33 | 33 | "\n", |
34 | | - "As these tutorial Notebooks are in Categorised sub-folders and to avoid the need for multiple config files (in each sub-folder), we will use the _RD_LIB_CONFIG_PATH_ environment variable to point to a single instance of the config file in the top-level ***Configuration*** folder.\n", |
| 34 | + "### One config file for the tutorials\n", |
| 35 | + "As these tutorial Notebooks are categorised into sub-folders and to avoid the need for multiple config files, we will use the _RD_LIB_CONFIG_PATH_ environment variable to point to a single instance of the config file in the top-level ***Configuration*** folder.\n", |
35 | 36 | "\n", |
36 | 37 | "Before proceeding, please **ensure you have entered your credentials** into the config file in the ***Configuration*** folder." |
37 | 38 | ] |
|
157 | 158 | "rd.open_session(config_name=\"../Configuration/refinitiv-data.custom.config.json\")" |
158 | 159 | ] |
159 | 160 | }, |
| 161 | + { |
| 162 | + "cell_type": "markdown", |
| 163 | + "id": "c840ae9a-438b-4d89-b6ad-3d98e62eed87", |
| 164 | + "metadata": {}, |
| 165 | + "source": [ |
| 166 | + "#### Close the default session \n", |
| 167 | + "\n", |
| 168 | + "To close the default session you can call:" |
| 169 | + ] |
| 170 | + }, |
| 171 | + { |
| 172 | + "cell_type": "code", |
| 173 | + "execution_count": null, |
| 174 | + "id": "31806e10-6589-4d2f-842b-2319a67f311c", |
| 175 | + "metadata": { |
| 176 | + "tags": [] |
| 177 | + }, |
| 178 | + "outputs": [], |
| 179 | + "source": [ |
| 180 | + "rd.close_session()" |
| 181 | + ] |
| 182 | + }, |
160 | 183 | { |
161 | 184 | "cell_type": "markdown", |
162 | 185 | "id": "079c0ec3", |
|
190 | 213 | "id": "3b0f1e3f-c16f-4618-87be-ee422b7a50e1", |
191 | 214 | "metadata": {}, |
192 | 215 | "source": [ |
193 | | - "\n", |
194 | | - "However, if you choose not use the refinitiv-data config file - rather than hardcoding parameters in your code, you may prefer to keep your credentials in a .env file (or some other external store) - to avoid accidentally exposing your credentials when sharing code. \n", |
195 | | - "A empty .env file has been included in this ***Quick Start*** folder.\n" |
| 216 | + " \n", |
| 217 | + "However, rather than hardcoding parameters in your code, you may prefer to keep your credentials in a .env file (or some other external store) - to avoid accidentally exposing your credentials when sharing code. \n", |
| 218 | + "A .env file with blank entries has been included in this ***Quick Start*** folder - for your reference.\n" |
196 | 219 | ] |
197 | 220 | }, |
198 | 221 | { |
|
373 | 396 | }, |
374 | 397 | { |
375 | 398 | "cell_type": "markdown", |
376 | | - "id": "8b12fc65", |
| 399 | + "id": "014c7989-9859-4de2-98fa-9d912aad1636", |
377 | 400 | "metadata": {}, |
378 | 401 | "source": [ |
379 | 402 | "## Session Events and State change notification\n", |
|
425 | 448 | "# close the session when done\n", |
426 | 449 | "session.close()" |
427 | 450 | ] |
428 | | - }, |
429 | | - { |
430 | | - "cell_type": "code", |
431 | | - "execution_count": null, |
432 | | - "id": "8119442c-31d2-436c-a2ab-4200700fb248", |
433 | | - "metadata": {}, |
434 | | - "outputs": [], |
435 | | - "source": [] |
436 | 451 | } |
437 | 452 | ], |
438 | 453 | "metadata": { |
|
0 commit comments