Description

The Code View allows users to edit specific fields and structures of code objects beyond their base properties. This view consists of two panes: the left pane contains the code editor, while the right pane serves as the output terminal.
Use plt to generate plots in the terminal.

Code Editor

The code editor enables you to modify code, and all changes are automatically saved as you edit. You can reference values from model objects within the code using @ or other script-based methods. When attributes are referenced, only the resolved values are passed into the compiled code. To import other local code, use the standard import notation followed by @ to specify the reference anchor:
    import [reference anchor here...]
Only a few packages can be used in browser at this time. Click on the modules button to see what packages can be used.
During live collaboration, only one user can edit a given line of code at a time.
To execute a code object, click the Run button in the top-right corner of the header bar. At any time you can halt execution by hitting the Stop button.
During live collaboration only one user can edit a given line of code at one time.
To run any code objects simply press the run button on the top right of the header bar.

Davinci Editing

You can use Davinci to make inline edits by selecting a range of code. Once selected a popup will appear and selecting the edit icon will make a input window open to allow instructions to edit specific areas of the code. Normally the edits will consider the code selected and its context in the object. To consider other information you can add reference objects using the add reference button to the right of the input box. While the range of selection will be the focus, Davinci can edit any code in the object based on the instruction.

Output Terminal

The output will display any print or plots. If errors occur they will also be displayed here.
By default, the output window is closed. It automatically opens when code is executed and can be toggled using the Output button on the right side of the header bar.
The output terminal does not retain data. It resets when the workspace tab is closed or when the same code is rerun.