hyperspy/hyperspyUI

hyperspyui magic?

francisco-dlp opened this issue · 2 comments

Would a %hyperspyui magic that opens HyperSpyUI and registers all the signals in the current namespace be feasible?

And the reverse, connecting to the IPython kernel in the HyperSpyUI session from e.g. a notebook?

I'm a little confused about the details of this question. Maybe these can help narrow them:

  • What do you mean registers all the signals in the current namespace ?
  • What kind of use cases are you imagining?

I'm not sure how easy it is to expose an in-process kernel to the outside, but as far as I can see, that is what would need to be done.

What do you mean registers all the signals in the current namespace

Search the namespace for variables containing HyperSpy signals and add them to the "Data view" panel.

What kind of use cases are you imagining?

HyperSpyUI solves one of the main annoyances of HyperSpy: the lack of a "figure manager". So, when working with many figures at the same time, one can call %hyperspyui and use it as a figure manager.

Connecting a notebook to a ipython session running in hyperspyui would make it easier to e.g. create long scripts/plugins in hyperspyui.