Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There are multiple ways to update an existing model using the Jupyter plugin.

Pre-requisites

In After registering a Jupyter instance model with the ModelOp toolbar, you must have a model registered with ModelOp Center Center, it is possible to update the model when it is open in the notebookNotebook. This Registration can be done with the steps outlined in Registering a new model or Opening an existing model (see v2.1 Register a Model and Opening an existing model in Jupyter).

...

Once the model has been loaded from ModelOp Center into one or more Jupyter cell(s), you can make the modifications to the source code as desired using standard Jupyter cell edit techniques.

When you have completed your the changes and are ready to update the model in ModelOp Centerare complete, click on the “Update current model in ModelOp Center“ icon from the ModelOp Center toolbar.

...

A prompt will ask you to confirm the changes made to cell contents before updating the model. This option copies back the source code of the selected cell into ModelOp Center.

...

From the toolbar, click on the “Edit current model” icon.

...

Please make sure you ensure have selected the notebook cell with an associated model, and the plugin will prompt you with a screen that allows to change the following:

  1. Edit the Model Information

    1. Change Model Name

    2. Change the model Description

  2. Edit the model functions associated with the primary source code. Please refer to “Registering a new model” section of this guide or here for more details. Please note that in order to avoid versioning conflicts, make sure to save all code modifications as indicated in the step “Editing the source code” above before changing the model functions. This will prevent recently introduced function definitions in the code to be associated before the code itself is synced back to ModelOp Center.

This step also sends ModelOp Center with information of the underlying platform Notebook environment in which this is run (system details, python details and libraries loaded) .to ModelOp Center

Adding attachments

From the toolbar, click on the “Add attachment for existing model” icon.

...

Please make sure you have selected the notebook cell with an associated model is selected, and the plugin will prompt you with a file browser and a screen to attach selected file to the model in the active cell.

...