Sign inSign up

k3vin/polynote-spark-python

By k3vin

•Updated almost 7 years ago

Polynote with Spark supporting both Scala and Python

Image
0

1.0K

k3vin/polynote-spark-python repository overview

⁠Polynote Spark (Scala and Python)

⁠Versions

  • Polynote: 0.2.12
  • Scala: 2.11

It is Polynote with Spark supporting both Scala and Python. It also has NumPy and pandas.

⁠Pull the Polynote with Spark image

docker pull k3vin/polynote-spark-python:latest

⁠Run

docker run -d -p 8192:8192 -p 4040:4040 k3vin/polynote-spark-python:latest

NOTE: port 4040 is for Spark Web UI.

Or If you want to keep the notebook after stopping the docker, specify the location of notebooks folder.

docker run -d -p 8192:8192 -p 4040:4040 -v /path/to/host/polynote/notebooks:/polynote/notebooks k3vin/polynote-spark-python:latest

⁠Start Spark

  1. Once accessing the polynote, click the Configuration & Dependencies to expand it. Configuration & Dependencies
  2. Add some Spark config (e.g. spark.master: local[*]) and click the Save & Restart button. Save & Restart
  3. Once Spark's started, you can see Spark Web UI link on the top right-hand side. Spark Web UI link

Tag summary

Content type

Image

Digest

Size

1.4 GB

Last updated

almost 7 years ago

docker pull k3vin/polynote-spark-python