Skip to content

Commit e088f94

Browse files
authored
Merge pull request #42 from turbomanage/master
init Spark context in case we had to restart Datalab
2 parents d4a782a + b174c1c commit e088f94

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

courses/unstructured/PySpark-Test-Solution.ipynb

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {
7+
"collapsed": true
8+
},
9+
"outputs": [],
10+
"source": [
11+
"from pyspark import SparkContext\n",
12+
"\n",
13+
"if 'sc' not in locals():\n",
14+
" sc = SparkContext(\"local\")"
15+
]
16+
},
317
{
418
"cell_type": "code",
519
"execution_count": 18,

0 commit comments

Comments
 (0)