3.1.1.3 Create Zeppelin Interpreter Output Limit in the Python Interpreter

Note:

This section is applicable only when zeppelin.interpreter.output.limit is unavailable in the Python Interpreter.
You can create the Zeppelin Interpreter Output Limit in the Python interpreter either in Compliance Studio UI or in Compliance Studio Server.
Compliance Studio UI
To create the Zeppelin Interpreter Output Limit in Python Interpreter via Compliance Studio UI, follow these steps:
  1. Log in to Compliance Studio UI.
  2. Click User Profile, select Data Studio Options and then click Interpreters. The Interpreters page is displayed.
  3. On the Left-Hand Side, click python interpreter. By default, Wizard pane is displayed.
  4. On the Right-Hand Side, navigate to Interpreter Client Configurations.

    Figure 3-11 Interpreter Client Configurations



  5. Click oracle.datastudio.python.DsPythonInterpreter (zeppelin). The Interpreter Client Configurations pane is displayed.

    Figure 3-12 Zeppelin Properties



  6. Navigate to Properties and click + Properties. The Properties pane is displayed.

    Figure 3-13 Properties of Zeppelin Interpreter Output Limit



  7. Enter the Key and Property Name as zeppelin.interpreter.output.limit.

    Note:

    The Environment Name, Description, and Type fields are optional, and you can provide the details if required.
  8. Update the preferred value in the Default Value. The value ranges from 102400 to 10240000 bytes.

    Note:

    Increasing the Default Value from 102400 bytes to a higher value may slow down output rendering in the python paragraph.
  9. Click Create. The zeppelin.interpreter.output.limit property will be created and displayed in the Interpreter Client Configurations section.

    Figure 3-14 Zeppelin Interpreter Output Limit



  10. Click Confirm to confirm the changes. The Python Interpreter page is displayed.

    Figure 3-15 Update Python Interpreter



  11. On the Right-Hand Side, click Update to save the modifications. A confirmation message will indicate that the Python interpreter has been updated.
  12. Restart Compliance Studio. The new zeppelin.interpreter.output.limit will be created in the python interpreter.
Compliance Studio Server
To create the Zeppelin Interpreter Output Limit in the Python interpreter in Compliance Studio Server, follow these steps:
  1. Navigate to the <COMPLIANCE_STUDIO_INSTALLATION_PATH>/deployed/mmg-home/mmgstudio/ server/builtin/interpreters directory.
  2. Open the python.json file and navigate to className": "oracle.datastudio.python.DsPythonInterpreter.
  3. Add the following lines at the end of the zeppelin properties.
    "zeppelin.interpreter.output.limit ": {
                             "envName": "",
                             "propertyName": "",
                             "defaultValue": "",
                             "description": "",
                             "type": ""
    }
    You can refer the following example when default value is 102400 bytes.
    "zeppelin.interpreter.output.limit ": {
                             "envName": "null",
                             "propertyName": "zeppelin.interpreter.output.limit",
                             "defaultValue": "102400",
                             "description": "Output message from interpreter exceeding the limit will be truncated",
                             "type": "number"
    }
  4. Save and close the python.json file.
  5. Restart Compliance Studio. The new zeppelin.interpreter.output.limit will be created in the python interpreter.