|
29 | 29 | }, |
30 | 30 | { |
31 | 31 | "cell_type": "code", |
32 | | - "execution_count": 19, |
| 32 | + "execution_count": 1, |
33 | 33 | "id": "ac2a4ee0", |
34 | 34 | "metadata": {}, |
35 | 35 | "outputs": [ |
|
54 | 54 | ] |
55 | 55 | }, |
56 | 56 | { |
57 | | - "cell_type": "raw", |
58 | | - "id": "7c26ba87", |
| 57 | + "cell_type": "code", |
| 58 | + "execution_count": 18, |
| 59 | + "id": "b824fb60", |
59 | 60 | "metadata": {}, |
| 61 | + "outputs": [], |
60 | 62 | "source": [ |
61 | 63 | "from sqlalchemy import create_engine\n", |
62 | 64 | "from snowflake.sqlalchemy import URL\n", |
|
88 | 90 | }, |
89 | 91 | { |
90 | 92 | "cell_type": "code", |
91 | | - "execution_count": 37, |
| 93 | + "execution_count": 3, |
92 | 94 | "id": "09b2ac9e", |
93 | 95 | "metadata": {}, |
94 | 96 | "outputs": [ |
95 | 97 | { |
96 | 98 | "data": { |
97 | 99 | "text/plain": [ |
98 | | - "('penguins.csv', <http.client.HTTPMessage at 0x1600c38b0>)" |
| 100 | + "('penguins.csv', <http.client.HTTPMessage at 0x12e38b100>)" |
99 | 101 | ] |
100 | 102 | }, |
101 | | - "execution_count": 37, |
| 103 | + "execution_count": 3, |
102 | 104 | "metadata": {}, |
103 | 105 | "output_type": "execute_result" |
104 | 106 | } |
|
114 | 116 | }, |
115 | 117 | { |
116 | 118 | "cell_type": "code", |
117 | | - "execution_count": 38, |
| 119 | + "execution_count": 4, |
118 | 120 | "id": "65ff0181", |
119 | 121 | "metadata": {}, |
120 | | - "outputs": [ |
121 | | - { |
122 | | - "name": "stdout", |
123 | | - "output_type": "stream", |
124 | | - "text": [ |
125 | | - "The sql extension is already loaded. To reload it, use:\n", |
126 | | - " %reload_ext sql\n" |
127 | | - ] |
128 | | - } |
129 | | - ], |
| 122 | + "outputs": [], |
130 | 123 | "source": [ |
131 | 124 | "%load_ext sql" |
132 | 125 | ] |
133 | 126 | }, |
134 | 127 | { |
135 | 128 | "cell_type": "code", |
136 | | - "execution_count": 39, |
| 129 | + "execution_count": 5, |
137 | 130 | "id": "803c43e4", |
138 | 131 | "metadata": {}, |
139 | 132 | "outputs": [], |
140 | 133 | "source": [ |
141 | | - "%sql engine" |
| 134 | + "%sql engine --alias connection" |
142 | 135 | ] |
143 | 136 | }, |
144 | 137 | { |
145 | 138 | "cell_type": "code", |
146 | | - "execution_count": 40, |
| 139 | + "execution_count": 6, |
147 | 140 | "id": "3e364576", |
148 | 141 | "metadata": {}, |
149 | 142 | "outputs": [ |
|
153 | 146 | "344" |
154 | 147 | ] |
155 | 148 | }, |
156 | | - "execution_count": 40, |
| 149 | + "execution_count": 6, |
157 | 150 | "metadata": {}, |
158 | 151 | "output_type": "execute_result" |
159 | 152 | } |
|
178 | 171 | }, |
179 | 172 | { |
180 | 173 | "cell_type": "code", |
181 | | - "execution_count": 25, |
| 174 | + "execution_count": 7, |
182 | 175 | "id": "23aa0941", |
183 | 176 | "metadata": {}, |
184 | 177 | "outputs": [ |
|
206 | 199 | "+----------+" |
207 | 200 | ] |
208 | 201 | }, |
209 | | - "execution_count": 25, |
| 202 | + "execution_count": 7, |
210 | 203 | "metadata": {}, |
211 | 204 | "output_type": "execute_result" |
212 | 205 | } |
|
227 | 220 | }, |
228 | 221 | { |
229 | 222 | "cell_type": "code", |
230 | | - "execution_count": 26, |
| 223 | + "execution_count": 8, |
231 | 224 | "id": "8f92b0f7", |
232 | 225 | "metadata": {}, |
233 | 226 | "outputs": [ |
234 | 227 | { |
235 | 228 | "data": { |
236 | 229 | "text/html": [ |
237 | | - "<span style=\"None\">Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'</span>" |
| 230 | + "<span style=\"None\">Running query in 'connection'</span>" |
238 | 231 | ], |
239 | 232 | "text/plain": [ |
240 | | - "Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'" |
| 233 | + "Running query in 'connection'" |
241 | 234 | ] |
242 | 235 | }, |
243 | 236 | "metadata": {}, |
|
279 | 272 | "+----------+" |
280 | 273 | ] |
281 | 274 | }, |
282 | | - "execution_count": 26, |
| 275 | + "execution_count": 8, |
283 | 276 | "metadata": {}, |
284 | 277 | "output_type": "execute_result" |
285 | 278 | } |
|
291 | 284 | }, |
292 | 285 | { |
293 | 286 | "cell_type": "code", |
294 | | - "execution_count": 27, |
| 287 | + "execution_count": 9, |
295 | 288 | "id": "082c9090", |
296 | 289 | "metadata": {}, |
297 | 290 | "outputs": [ |
298 | 291 | { |
299 | 292 | "data": { |
300 | 293 | "text/html": [ |
301 | | - "<span style=\"None\">Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'</span>" |
| 294 | + "<span style=\"None\">Running query in 'connection'</span>" |
302 | 295 | ], |
303 | 296 | "text/plain": [ |
304 | | - "Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'" |
| 297 | + "Running query in 'connection'" |
305 | 298 | ] |
306 | 299 | }, |
307 | 300 | "metadata": {}, |
|
355 | 348 | "+-----------+-------+" |
356 | 349 | ] |
357 | 350 | }, |
358 | | - "execution_count": 27, |
| 351 | + "execution_count": 9, |
359 | 352 | "metadata": {}, |
360 | 353 | "output_type": "execute_result" |
361 | 354 | } |
|
380 | 373 | }, |
381 | 374 | { |
382 | 375 | "cell_type": "code", |
383 | | - "execution_count": 28, |
| 376 | + "execution_count": 10, |
384 | 377 | "id": "a108569c", |
385 | 378 | "metadata": {}, |
386 | 379 | "outputs": [ |
387 | 380 | { |
388 | 381 | "data": { |
389 | 382 | "text/html": [ |
390 | | - "<span style=\"None\">Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'</span>" |
| 383 | + "<span style=\"None\">Running query in 'connection'</span>" |
391 | 384 | ], |
392 | 385 | "text/plain": [ |
393 | | - "Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'" |
| 386 | + "Running query in 'connection'" |
394 | 387 | ] |
395 | 388 | }, |
396 | 389 | "metadata": {}, |
|
419 | 412 | }, |
420 | 413 | { |
421 | 414 | "cell_type": "code", |
422 | | - "execution_count": 30, |
| 415 | + "execution_count": 11, |
423 | 416 | "id": "6768b87e", |
424 | 417 | "metadata": {}, |
425 | 418 | "outputs": [ |
|
433 | 426 | { |
434 | 427 | "data": { |
435 | 428 | "text/html": [ |
436 | | - "<span style=\"None\">Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'</span>" |
| 429 | + "<span style=\"None\">Running query in 'connection'</span>" |
437 | 430 | ], |
438 | 431 | "text/plain": [ |
439 | | - "Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'" |
| 432 | + "Running query in 'connection'" |
440 | 433 | ] |
441 | 434 | }, |
442 | 435 | "metadata": {}, |
|
490 | 483 | "+-----------+--------------------+" |
491 | 484 | ] |
492 | 485 | }, |
493 | | - "execution_count": 30, |
| 486 | + "execution_count": 11, |
494 | 487 | "metadata": {}, |
495 | 488 | "output_type": "execute_result" |
496 | 489 | } |
|
512 | 505 | }, |
513 | 506 | { |
514 | 507 | "cell_type": "code", |
515 | | - "execution_count": 31, |
| 508 | + "execution_count": 12, |
516 | 509 | "id": "7bcf72de", |
517 | 510 | "metadata": {}, |
518 | 511 | "outputs": [ |
|
551 | 544 | }, |
552 | 545 | { |
553 | 546 | "cell_type": "code", |
554 | | - "execution_count": 32, |
| 547 | + "execution_count": 13, |
555 | 548 | "id": "1397fbb6", |
556 | 549 | "metadata": {}, |
557 | 550 | "outputs": [ |
|
651 | 644 | "+-------------------+-------------------+----------+---------+---------------+---------+-------------+" |
652 | 645 | ] |
653 | 646 | }, |
654 | | - "execution_count": 32, |
| 647 | + "execution_count": 13, |
655 | 648 | "metadata": {}, |
656 | 649 | "output_type": "execute_result" |
657 | 650 | } |
|
672 | 665 | }, |
673 | 666 | { |
674 | 667 | "cell_type": "code", |
675 | | - "execution_count": 33, |
| 668 | + "execution_count": 14, |
676 | 669 | "id": "f3bad484", |
677 | 670 | "metadata": {}, |
678 | 671 | "outputs": [], |
|
683 | 676 | }, |
684 | 677 | { |
685 | 678 | "cell_type": "code", |
686 | | - "execution_count": 34, |
| 679 | + "execution_count": 15, |
687 | 680 | "id": "aa7319e8", |
688 | 681 | "metadata": {}, |
689 | 682 | "outputs": [ |
690 | 683 | { |
691 | 684 | "data": { |
692 | 685 | "text/html": [ |
693 | | - "<span style=\"None\">Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'</span>" |
| 686 | + "<span style=\"None\">Running query in 'connection'</span>" |
694 | 687 | ], |
695 | 688 | "text/plain": [ |
696 | | - "Running query in 'snowflake://neelasha:***@lpb17716.us-east-1/JUPYSQL/INTEGRATION?drivername=snowflake&role=SYSADMIN&warehouse=COMPUTE_WH'" |
| 689 | + "Running query in 'connection'" |
697 | 690 | ] |
698 | 691 | }, |
699 | 692 | "metadata": {}, |
|
757 | 750 | "+-----------+--------+" |
758 | 751 | ] |
759 | 752 | }, |
760 | | - "execution_count": 34, |
| 753 | + "execution_count": 15, |
761 | 754 | "metadata": {}, |
762 | 755 | "output_type": "execute_result" |
763 | 756 | } |
|
778 | 771 | }, |
779 | 772 | { |
780 | 773 | "cell_type": "code", |
781 | | - "execution_count": 43, |
| 774 | + "execution_count": 16, |
782 | 775 | "id": "edbae739", |
783 | 776 | "metadata": {}, |
784 | 777 | "outputs": [ |
|
792 | 785 | { |
793 | 786 | "data": { |
794 | 787 | "application/vnd.jupyter.widget-view+json": { |
795 | | - "model_id": "3b7206dffaab41c9a1fddaa27d192c1a", |
| 788 | + "model_id": "a82fb668e7ab42bfb96eb501dfbe50b4", |
796 | 789 | "version_major": 2, |
797 | 790 | "version_minor": 0 |
798 | 791 | }, |
|
821 | 814 | }, |
822 | 815 | { |
823 | 816 | "cell_type": "code", |
824 | | - "execution_count": 52, |
| 817 | + "execution_count": 17, |
825 | 818 | "id": "20db062a", |
826 | 819 | "metadata": {}, |
827 | 820 | "outputs": [], |
|
0 commit comments