---
title: "Notebooks interpreter update"
canonical: "https://onesaitplatform.refined.site/space/DOCT/5147590660/Notebooks%20interpreter%20update"
format: markdown
---
> ℹ️ Available since [version 7.0.0-Zelda](https://en.onesaitplatform.com/space/ROAD/5144018957)

> Macro (toc)

# Introduction

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](media://82518d32-54ab-4497-9515-0e5c8cfb872f)

- **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](media://9644d2c7-3fd3-4c27-8edd-257dafa0da5d)

# 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](media://5d47a477-e07b-4823-81ff-5d6a4c65f146)

# 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:

![Nuevo Intérprete Onesait Platform en Notebooks.mp4](media://ebf75716-9b45-433f-be97-0be34c8a7d2e)

# Further information

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

[https://onesaitplatform.atlassian.net/wiki/spaces/DOCT/pages/2220804891](https://onesaitplatform.atlassian.net/wiki/spaces/DOCT/pages/2220804891)

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 the following link you can see in detail what has been implemented in this new version:

[https://onesaitplatform.atlassian.net/wiki/spaces/DOCT/pages/5067636748](https://onesaitplatform.atlassian.net/wiki/spaces/DOCT/pages/5067636748)

 In the following Notebook you can see how the new methods work: