|
55 | 55 | "\n", |
56 | 56 | "Set your default session_type below with **SESSION_TYPE** variable below - valid values are:\n", |
57 | 57 | "- \"**desktop**\"\n", |
58 | | - "- \"**platform**\"\n", |
| 58 | + "- \"**rdp**\"\n", |
59 | 59 | "- \"**deployed**\" \n", |
60 | 60 | "\n", |
61 | 61 | "This will avoid the need to specif it in all the tutorials.\n", |
|
76 | 76 | "outputs": [], |
77 | 77 | "source": [ |
78 | 78 | "# Set your Default session type here\n", |
79 | | - "SESSION_TYPE = 'platform'\n", |
| 79 | + "SESSION_TYPE = 'rdp'\n", |
80 | 80 | "\n", |
81 | 81 | "import refinitiv.data as rd\n", |
82 | 82 | "from refinitiv.data._data.legacy import get_default_session, set_default_session\n", |
|
88 | 88 | " if session is None:\n", |
89 | 89 | " if session_type == \"desktop\":\n", |
90 | 90 | " session = rd.session.desktop.Definition(APP_KEY).get_session()\n", |
91 | | - " elif session_type == \"platform\":\n", |
| 91 | + " elif session_type == \"rdp\":\n", |
92 | 92 | " session = rd.session.platform.Definition(\n", |
93 | 93 | " app_key=APP_KEY,\n", |
94 | 94 | " grant=rd.session.platform.GrantPassword(\n", |
|
104 | 104 | " ).get_session()\n", |
105 | 105 | "\n", |
106 | 106 | " if session is None:\n", |
107 | | - " raise Exception(f\"Wrong session_type: {session_type}. It must be ['desktop', 'platform', 'deployed']\")\n", |
| 107 | + " raise Exception(f\"Wrong session_type: {session_type}. It must be ['desktop', 'rdp', 'deployed']\")\n", |
108 | 108 | " else:\n", |
109 | 109 | " set_default_session(session)\n", |
110 | 110 | " #session.set_log_level(logging.DEBUG)\n", |
|
0 commit comments