You can publish the RubiPython/RubiR code from a workbook/Pipeline and reuse it in another workbook or pipeline of same project. This feature is similar to publishing models in RubiStudio.
To publish RubiPython code, follow the steps given below.
After the code is successfully published, a confirmation message is displayed. This code is listed under Code Snippets on the Rubiscape Home page.
Notes: |
|
The published RubiPython code is available for reuse in workbooks and pipelines in the same project of the workspace.
To reuse a published code, follow the steps given below.
The available reusable codes are displayed as shown in the figure below.
- The publish code is published with same name of task of RubiPython.
- The different RubiPython codes published with same name of tasks under same project will overwrite the earlier code.
- The RubiPython code is reusable at the project level in any of the entities- Workbook/Pipelines.
- Import export of project will carry forward your published code as well.
- You need to run the task first before publishing code.
- The same task can be re-published multiple times. Latest published code will get considered when you use the Resuable Code.