Technology
Python Shell for Debugging
Ask AI
How to open the corridor-api application-context Python shell for debugging and interacting with platform objects.
Python shell with corridor-api application context is useful to interact with the objects created on the platform,
without using SQL.
The shell can be opened by running the command:
corridor-api shellThe follow components support this command: corridor-api, corridor-app, corridor-worker.
Examples
Section titled “Examples”To create a spark session in the shell:
$ corridor-api shell>>> import pyspark>>> spark = pyspark.sql.SparkSession.builder.getOrCreate()>>> spark<pyspark.sql.session.SparkSession object at 0x7f9dbd1cb1f0>To check the version of scikit-learn library:
$ corridor-api shell>>> import sklearn>>> sklearn.__version__'0.24.2'Was this page helpful?
Thanks for the feedback.