ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

Scripting console: API (?) to automate clearing the console #5843

Open Tom-Willemsen opened 3 years ago

Tom-Willemsen commented 3 years ago

The output of the scripting console in the GUI has a limited size to avoid it taking large amounts of memory. As a muon scientist I would like to automatically clear the console at certain times, so that I don't run into this limit mid-experiment.

The suggested implementation of this ticket is to have an API in genie_python that talks to the GUI and tells it to clear the console. This is done elsewhere using py4j. The scientists would then hook into this API to clear the console automatically when, for example, a new RB number is set.

Acceptance criteria:

ChrisM-S commented 3 years ago

Is it possible to do this incrementally once it reaches a buffer size limit (following the FIFO pattern as with a windows terminal)? It does make sense to have an equivalent of the "cls" command as hook to clear everything though. It might be irritating if the automated clear of the buffer was an arbitrary "cls".

Tom-Willemsen commented 3 years ago

@ChrisM-S yes that would be ideal but is hard in pydev. See discussion on https://github.com/ISISComputingGroup/IBEX/issues/4146

John-Holt-Tessella commented 3 years ago

What problem are they actually trying to solve having the console open for a long time. They should be able to restart the GUI at any point so what information are they trying to keep? Should we be saving it somewhere more permanent and associating it with a run?