robotframework-jupyterlibrary
robotframework-jupyterlibrary copied to clipboard
keywords for working with multiple open notebook tabs
Signed-off by Berto D'Attoma: [email protected]
Hi, the following PR wants to propose some keywords to work where there are more than one notebook file opened in JupyterLab. Without these, there were issues trying to get cell outputs with the already present keywords.
implemented keywords
The keywords are:
Wait Until a Given JupyterLab Code Cell Is Not Active In a Given Tab- it waits until the [*] symbol disappear (so the cell finished to run) - renamed toWait Until JupyterLab Code Cell Is Idle. It works fine in Jupyter v3 and v2.Get A JupyterLab Code Cell Output In a Given Tab- it returns the output of the cell.Select Tab By Name- it selects an open tab (notebook file). Renamed toSelect JupyterLab Dock Panel Tab By FilePath. It works fine in Jupyter v3, v2 and v1Get Selected Tab ID- it returns the tab id of the selected one (e.g., tab-key-0). Renamed toGet Selected JupyterLab Dock Panel Tab. It works fine in Jupyter v3 and v2
compatibility with Jupyter v1
The main issue is that in v1 we don't have the id attribute on the "tab" element. I can investigate a way to achieve the same result of keyword 1 and 2 without using the tab id (e.g., by targeting the tab by filepath, like done in keyword 3)
The force pushing makes it hard to track comments over time.
Generally, these are looking okay, but need representative acceptance tests added.