Python
Python is a computer language which are used, for example, to conduct data analysis (you can learn more about python here). In Teragrep, python is a standalone interpreter.
Python and PySpark are two seperate interpreters, even though they both use the same language. You can use PySpark to access Spark features. |
To use python in Teragrep’s editor, write %python
at the start.
%python
import sys
import datetime
import socket
import getpass
import numpy
print(sys.version)
print(numpy)
print(socket.gethostname())
print(getpass.getuser())
print(datetime.datetime.now())
