New Features

Notebooks interpreter update

During the first quarter of 2025, an update has been made to the Notebooks interpreter, adding a couple of new methods.

New methods

In the onesaitplatform interpreter, two new methods have been implemented:

  • queryFile: which is used to facilitate the handling of statements, as its function is to dump the result of the query into a file.
image-20250411-103500.png
  • queryFileStatus: that allows to check if the file generated with the previous method has finished, or is still in process. This function works as follows: it makes a first request to obtain the status, which can be in_progress or finished. If the status is ‘finished’, it will be displayed on the screen. If the status is ‘in_progress’, the function will make multiple requests during the time defined by the ‘timeout’, pausing between them according to the value of ‘timesleep’. Once the ‘finished’ status is received, it shall be printed on the screen. If at the end of the timeout time the ‘finished’ status has not been received, ‘in_progress’ shall be returned.
image-20250411-103532.png

Configuration

In addition, the rest of the methods have been verified to work correctly. During this revision, the endpoints of %onesaitplatform.apimanager have been changed to those belonging to the Control Panel.

New properties called ‘apimanagement’ have been added, which are the ones referring to the requests to the Control Panel.

image-20250411-104321.png

Example of use

In the following Notebook, you can observe and test the functioning of all the new methods of both %onesaitplatform and %onesaitplatform.apimanager:

In the following video you can see the functionality:

Further information

To find out more, the complete tutorials on the onesaitplatform interpreter and how it works can be found at this link.

In the python interpreter, the version of the python library, onesaitplatform-client-services, has been updated to version 1.4.15. This update includes the addition of the following methods: query_file, query_file_status, download_file_minio and to_pandasdataframe.

In this link you can see in detail what has been implemented in this new version.

Finally, in this Notebook you can see how the new methods work.


Header Image: 2H Media at Unsplash

✍🏻 Author(s)

Leave a Reply