Skip to content

Commit 07e1f34

Browse files
committed
Minor update to the Colab example
1 parent f28dbef commit 07e1f34

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

examples/SparkMeasure_Jupyter_Colab_Example.ipynb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"![sparkMeasure architecture diagram](https://github.com/LucaCanali/sparkMeasure/raw/master/docs/sparkMeasure_architecture_diagram.png)\n",
3030
"\n",
3131
"Author and contact: Luca.Canali@cern.ch \n",
32-
"Last updated: March 2024"
32+
"Last updated: August 2025"
3333
]
3434
},
3535
{
@@ -42,7 +42,7 @@
4242
"\n",
4343
"# Install PySpark/Spark \n",
4444
"\n",
45-
"!pip install pyspark\n",
45+
"# !pip install pyspark\n",
4646
"\n",
4747
"# Install the Python wrapper API for spark-measure\n",
4848
"\n",
@@ -60,14 +60,13 @@
6060
"# Start the Spark Session\n",
6161
"# This example uses Spark in local mode for simplicity.\n",
6262
"# You can modify master to use YARN or K8S if available \n",
63-
"# This example uses sparkMeasure 0.25 compiled with scala 2.13, downloaded from maven central\n",
6463
"\n",
65-
"spark = SparkSession \\\n",
66-
" .builder \\\n",
67-
" .master(\"local[*]\") \\\n",
68-
" .appName(\"Test sparkmeasure instrumentation of Python/PySpark code\") \\\n",
69-
" .config(\"spark.jars.packages\",\"ch.cern.sparkmeasure:spark-measure_2.13:0.25\") \\\n",
70-
" .getOrCreate()"
64+
"spark = (SparkSession\n",
65+
" .builder\n",
66+
" .master(\"local[*]\")\n",
67+
" .appName(\"Test sparkmeasure instrumentation of Python/PySpark code\")\n",
68+
" .config(\"spark.jars.packages\",\"ch.cern.sparkmeasure:spark-measure_2.12:0.25\")\n",
69+
" .getOrCreate() )"
7170
]
7271
},
7372
{

0 commit comments

Comments
 (0)