Publishing the notebook - HxGN EAM - 12.0.1 - Feature Briefs - Hexagon

HxGN EAM Python Studio and Flex Python Scripting

Language
English
Product
HxGN EAM
Search by Category
Feature Briefs
HxGN EAM Version
12.0.1

When satisfied with the Python script, the author will Publish the notebook file to either run it on a set programmed schedule or a trigger from EAM. In Python Studio, with the desired notebook file open, the script author will navigate to File > Publish. This action will perform the following:

  1. Transform the notebook file into a Flex Python script.

    1. .zip file containing:

      1. .py file containing only the Code Cells from source notebook.

      2. .txt file containing the required libraries to execute the script.

  2. Create a new document in EAM file repository with the Python Script Type of ‘Executable’.

The executable .zip file is not uploaded to the EAM document repository. It is a reference to the file stored within Python Studio.

Script author must leverage the Imports section of any of the provided templates when defining the Python libraries to import. Failure to do so in this fashion will cause issues in the publishing step.