{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print('Hello Elyra')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import os\n", "env_1 = os.getenv('TEST_ENV_1', \"INVALID\")\n", "env_2 = os.getenv('TEST_ENV_2', \"INVALID\")\n", "with open(\"output.txt\", \"w\") as file: \n", " # Writing data to a file \n", " file.write(f\"TEST_ENV_1={env_1}\\n\") \n", " file.write(f\"TEST_ENV_2={env_2}\\n\") " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.7" } }, "nbformat": 4, "nbformat_minor": 4 }