|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": 2, |
| 5 | + "execution_count": null, |
6 | 6 | "metadata": {},
|
7 |
| - "outputs": [ |
8 |
| - { |
9 |
| - "output_type": "error", |
10 |
| - "ename": "Error", |
11 |
| - "evalue": "Jupyter cannot be started. Error attempting to locate jupyter: Data Science libraries jupyter and notebook are not installed in interpreter Python 3.7.7 64-bit ('jupyter': conda).", |
12 |
| - "traceback": [ |
13 |
| - "Error: Jupyter cannot be started. Error attempting to locate jupyter: Data Science libraries jupyter and notebook are not installed in interpreter Python 3.7.7 64-bit ('jupyter': conda).", |
14 |
| - "at b.startServer (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:92:270430)", |
15 |
| - "at async b.createServer (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:92:269873)", |
16 |
| - "at async connect (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:92:397876)", |
17 |
| - "at async w.ensureConnectionAndNotebookImpl (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:16:556625)", |
18 |
| - "at async w.ensureConnectionAndNotebook (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:16:556303)", |
19 |
| - "at async w.clearResult (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:16:552346)", |
20 |
| - "at async w.reexecuteCell (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:16:540374)", |
21 |
| - "at async w.reexecuteCells (/Users/romain/.vscode/extensions/ms-python.python-2020.5.80290/out/client/extension.js:16:537541)" |
22 |
| - ] |
23 |
| - } |
24 |
| - ], |
| 7 | + "outputs": [], |
25 | 8 | "source": [
|
26 | 9 | "from pyspark.sql import SparkSession\n",
|
27 | 10 | "\n",
|
28 | 11 | "# Spark session & context\n",
|
29 |
| - "spark = SparkSession.builder.master('local').getOrCreate()\n", |
| 12 | + "spark = SparkSession.builder.master(\"local\").getOrCreate()\n", |
30 | 13 | "sc = spark.sparkContext\n",
|
31 | 14 | "\n",
|
32 | 15 | "# Sum of the first 100 whole numbers\n",
|
|
38 | 21 | ],
|
39 | 22 | "metadata": {
|
40 | 23 | "kernelspec": {
|
41 |
| - "display_name": "Python 3", |
| 24 | + "display_name": "Python 3 (ipykernel)", |
42 | 25 | "language": "python",
|
43 | 26 | "name": "python3"
|
44 | 27 | },
|
|
52 | 35 | "name": "python",
|
53 | 36 | "nbconvert_exporter": "python",
|
54 | 37 | "pygments_lexer": "ipython3",
|
55 |
| - "version": "3.7.6" |
| 38 | + "version": "3.9.10" |
56 | 39 | }
|
57 | 40 | },
|
58 | 41 | "nbformat": 4,
|
|
0 commit comments