dir()

Like ls() in R. Lists the local ‘namespace’ I guess? Not sure exactly what to call it but it lists all the objects you’ve created basically:

>>> dir()
['__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__', 
'data', 'docs', 'good', 'np', 'pd', 'test', 'topics', 'train', 'train_x']

python -c

Means you can run functions from the commandline.

$ python3 -c 'from gspr import test; test()'