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 OFS MMG UI or in OFS MMG Server.
OFS MMG UI
To create the Zeppelin Interpreter Output Limit in Python Interpreter via OFS MMG UI, follow these steps:
  1. Log in to OFS MMG 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 8-8 Interpreter Client Configurations



  5. Click oracle.datastudio.python.DsPythonInterpreter (zeppelin). The Interpreter Client Configurations pane is displayed.
  6. Navigate to Properties and click + Properties. The Properties pane is displayed.

    Figure 8-10 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 8-11 Zeppelin Interpreter Output Limit



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

    Figure 8-12 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 OFS MMG. The new zeppelin.interpreter.output.limit will be created in the python interpreter.
OFS MMG Server
To create the Zeppelin Interpreter Output Limit in the Python interpreter in OFS MMG Server, follow these steps:
  1. Navigate to the <MMG_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 OFS MMG. The new zeppelin.interpreter.output.limit will be created in the python interpreter.