|
1 | 1 | {
|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 |
| - "cell_type": "code", |
| 4 | + "cell_type": "markdown", |
5 | 5 | "isExecuted": true,
|
| 6 | + "metadata": {}, |
| 7 | + "source": [ |
| 8 | + "# Demo Notebook\n", |
| 9 | + "\n", |
| 10 | + "- This is just a demo notebook\n", |
| 11 | + "- For testing only" |
| 12 | + ] |
| 13 | + }, |
| 14 | + { |
| 15 | + "cell_type": "code", |
| 16 | + "isExecuted": false, |
6 | 17 | "lastExecutionResult": "success",
|
7 | 18 | "lastExecutionTime": "2024-12-10 03:27:50",
|
8 | 19 | "metadata": {},
|
|
64 | 75 | "\n",
|
65 | 76 | "spark\n"
|
66 | 77 | ]
|
67 |
| - }, |
68 |
| - { |
69 |
| - "cell_type": "markdown", |
70 |
| - "isExecuted": true, |
71 |
| - "metadata": {}, |
72 |
| - "source": [ |
73 |
| - "# Demo Notebook\n", |
74 |
| - "\n", |
75 |
| - "- This is just a demo notebook\n", |
76 |
| - "- For testing only" |
77 |
| - ] |
78 |
| - }, |
79 |
| - { |
80 |
| - "cell_type": "code", |
81 |
| - "execution_count": null, |
82 |
| - "isExecuted": false, |
83 |
| - "lastExecutionResult": "success", |
84 |
| - "lastExecutionTime": "2024-08-04 15:29:17", |
85 |
| - "metadata": {}, |
86 |
| - "outputs": [ |
87 |
| - { |
88 |
| - "data": { |
89 |
| - "text/html": [ |
90 |
| - "\n", |
91 |
| - " <div style=\"border: 1px solid #e8e8e8; padding: 10px;\">\n", |
92 |
| - " <h3>Spark Session Information</h3>\n", |
93 |
| - " <p><strong>Application ID:</strong> app-20240804152430-0000</p>\n", |
94 |
| - " <p><strong>Spark UI:</strong> <a href=\"http://localhost:18080/history/app-20240804152430-0000\">http://localhost:18080/history/app-20240804152430-0000</a></p>\n", |
95 |
| - " </div>\n", |
96 |
| - " " |
97 |
| - ], |
98 |
| - "text/plain": [ |
99 |
| - "Custom Spark Session (App ID: app-20240804152430-0000) - UI: http://66eef2d0ade3:4040" |
100 |
| - ] |
101 |
| - }, |
102 |
| - "execution_count": 4, |
103 |
| - "metadata": {}, |
104 |
| - "output_type": "execute_result" |
105 |
| - } |
106 |
| - ], |
107 |
| - "source": [ |
108 |
| - "# SparkSession is already defined in `spark` variable\n", |
109 |
| - "spark" |
110 |
| - ] |
111 |
| - }, |
112 |
| - { |
113 |
| - "cell_type": "code", |
114 |
| - "execution_count": 1, |
115 |
| - "isExecuted": false, |
116 |
| - "metadata": {}, |
117 |
| - "outputs": [ |
118 |
| - { |
119 |
| - "ename": "NameError", |
120 |
| - "evalue": "name 'a' is not defined", |
121 |
| - "output_type": "error", |
122 |
| - "traceback": [ |
123 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
124 |
| - "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", |
125 |
| - "Cell \u001b[0;32mIn[1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[43ma\u001b[49m \u001b[38;5;241m+\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m2233666777888\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n", |
126 |
| - "\u001b[0;31mNameError\u001b[0m: name 'a' is not defined" |
127 |
| - ] |
128 |
| - } |
129 |
| - ], |
130 |
| - "source": [ |
131 |
| - "print(a + \"2233666777888\")" |
132 |
| - ] |
133 |
| - }, |
134 |
| - { |
135 |
| - "cell_type": "code", |
136 |
| - "execution_count": null, |
137 |
| - "isExecuted": false, |
138 |
| - "metadata": {}, |
139 |
| - "outputs": [ |
140 |
| - { |
141 |
| - "name": "stdout", |
142 |
| - "output_type": "stream", |
143 |
| - "text": [ |
144 |
| - "66\n", |
145 |
| - "77\n" |
146 |
| - ] |
147 |
| - } |
148 |
| - ], |
149 |
| - "source": [ |
150 |
| - "print(66)\n", |
151 |
| - "print(77)" |
152 |
| - ] |
153 |
| - }, |
154 |
| - { |
155 |
| - "cell_type": "code", |
156 |
| - "execution_count": null, |
157 |
| - "isExecuted": false, |
158 |
| - "metadata": {}, |
159 |
| - "outputs": [], |
160 |
| - "source": [ |
161 |
| - "spark.stop()" |
162 |
| - ] |
163 | 78 | }
|
164 | 79 | ],
|
165 | 80 | "metadata": {
|
|
0 commit comments