Hello everyone,

I have a quite annoying problem with the group closing every time I click the submit button in the interactive argument. It could save a lot of clicks and time if it did not close every time.

The code would look somewhat like this:

from artiq.experiment import *

class ScanExperiment(EnvExperiment):

  def build(self):
      pass

  def run(self):
      repeat = True
      while repeat:
          print("Hello World")
          with self.interactive(title="Repeat?") as interactive:
              interactive.setattr_argument("repeat", BooleanValue(True), "Test_group")
          repeat = interactive.repeat`

How can I prevent this reopening after the click?
Are there any alternatives for having many different groups in one interactive window?

At the moment, GUI state (scrolling, expanded groups) for interactive argument widgets is not saved in between submissions. This is due to the fact that multiple interactive argument widgets from the same experiment may be in different pipelines at the same time. The widgets are also destroyed and remade for each submission, since it is not known that the “same” interactive arguments will be sent to the dashboard again (read: should have the same GUI state).

That being said, I am not opposed to being able to customize this. I have created an issue on GH, since adding this would require a code change and potentially an API change to the interactive context manager.

Thank you for the suggestion!